Password.defaultValue : Password : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Password »

 

Password.defaultValue







The defaultValue gets the HTML VALUE attribute of the password box.












<html>
    <head>
    <title> Example of the password defaultValue property</title>
    </head>
    <body>
    <form name="form1">
    <input type="PASSWORD" Name="pass" size=10 value="pass123">
    <br>
    <input type="BUTTON" value="Show Password" onClick=alert(document.form1.pass.defaultValue)>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Password