Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Password select() method

Password select() method

Password Object Reference Password Object


Definition and Usage

The select() method is used to select the text in a password field

Syntax

passwordObject.select()


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the select() method


Example

Example

The example below selects the text in a password field:

Runoob Tutorial(runoob.com)

Password:

Try it »


Password Object Reference Password Object