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