Password.handleEvent() : Password : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Password »

 

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Password