Input Password select() method
Definition and Usage
select()
The method is used to select the content of the password field.
Example
Select the content of the password field:
document.getElementById("myPsw").select();
Syntax
passwordObject.select()
Parameter
None.
Return Value:
No Return Value.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |