The form property accesses the Form object in which the password box resides.
<html> <head> <title> Example of the password form 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.form.name)> </form> </body> </html>