Mega Code Archive

 
Categories / JavaScript Tutorial / Form
 

Password value

The value property gets the value entered in the password box. <html>     <head>     <title> Example of the password value property</title>     </head>     <body>     <form name="form1">     <input type="PASSWORD" Name="pass" size=10>     <br>     <input type="BUTTON" value="Get Value" onClick=alert(document.form1.pass.value)>     </form>     </body>     </html>