The password Object [2|3|I]

The password object reflects a password text field from an HTML form in JavaScript.

Properties

  • defaultValue— A string value containing the default value of the password element (such as the value of the VALUE attribute).

  • enabled— A Boolean value indicating whether the password field is enabled. (Not 2|3.)

  • form— A reference to the form object containing the password field. (Not 2|3.)

  • name— A string value containing the name of the password element.

  • value— A string value containing the value of the password element.

Methods

  • blur()— Emulates the action of removing focus from the password field.

  • focus()— Emulates the action of focusing in the password field.

  • select()— Emulates the action of selecting the text in the password field. ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.