The type property gets the HTML TYPE attribute associated with the password box.
For the Password object, this value is always password.
<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>