document.onkeyup : onkeyup : Document JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Document » onkeyup »

 

document.onkeyup







The onKeyUp event handler specifies what should happen when any key is pressed and then released when the Document object is in focus.












<html>
    <head>
    <script language="JavaScript1.2">
    <!--

    document.onkeyup = myKeyUpHandler;

    function myKeyUpHandler() {
      alert("A key up event took place within the document!");
    }
    -->
    </script>
    </head>
    <body>
    press a key and release it within this document.
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Document
» onkeyup