August 1999
Intermediate to advanced
1488 pages
72h 53m
English
password.type
The type property of the Password object is used to get the HTML TYPE attribute associated with the password box. For the Password object, this value is always password.
Listing 7.423 shows an example of how the type property is used. When the button is clicked, an alert box is displayed showing the value of the type property.
<html> <head> <title> Example of the password type property</title> </head> <body> <form name="form1"> <input type="PASSWORD" Name="pass" size=10> <br> <input type="BUTTON" value="Get Type" onClick=alert(document.form1.pass.type)> </form> </body> </html> |
Read now
Unlock full access