HTML and CSS Reference
In-Depth Information
window
document
form
password
Figure 11.29 The password object within the JavaScript hierarchy.
Table 11.11 Properties of the password Object
Property
What It Describes
accessKey
Sets or retrieves the keyboard key to access a password field.
alt
Sets or retrieves an alternate text to display if a browser does not
support password fields.
defaultValue
The value assigned to the value attribute, and the default value the
user sees in the password field when it first appears.
form
A reference to the form where the password field is defined.
id
Sets or retrieves the id of the password field. Used with
getElementById() method.
name
The name used to reference the password box. Used by the browser to
set name/value pairs sent to a server when the form is submitted.
maxLength
Sets or retrieves the maximum number of characters in the password
field.
readOnly
Sets or retrieves whether or not the password field should be read-
only.
size
Sets or retrieves the size of the password field.
tabIndex
Sets or retrieves the tab order for the password field.
type
The type of the input device (i.e., password ).
value
The value attribute that will be assigned whatever the user types in the
password field.
 
Search WWH ::




Custom Search