Mega Code Archive

 
Categories / JavaScript Tutorial / Form
 

Password handleEvent()

Syntax password.handleEvent(event) The handleEvent() method handles events of the type event passed. <html>     <head>     <title> Example of the password handleEvent property</title>     </head>     <body>     <script language="JavaScript">     <!--     document.captureEvents(Event.CHANGE);     function handleChange(evnt){         window.document.pass.handleEvent(evnt);     }     function showMsg(){         alert("Password Changed.");     }     document.onchange = handleChange;     -->     </script>     <form name="form1">     Enter password:     <input type="PASSWORD" name="pass" size=15 onChange='showMsg()'>     </form>     </body>     </html>