Password.handleEvent() : Password « Form « JavaScript Tutorial






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>








10.10.Password
10.10.1.Password
10.10.2.Password.blur()
10.10.3.Password.defaultValue
10.10.4.Password.focus()
10.10.5.Password.form
10.10.6.Password.handleEvent()
10.10.7.Password.name
10.10.8.Password.onBlur
10.10.9.Password.onFocus
10.10.10.Password.select()
10.10.11.Password.type
10.10.12.Password.value
10.10.13.Compare value in the password fields