The name property gets the HTML NAME attribute of the password box.
<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>