Password.type : Password : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Password »

 

Password.type








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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Password