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>