Expand|Select|Wrap|Line Numbers
- <head>
- <script type="text/javascript">
- //document.onKeyDown=isBack(event);
- function isBack(event)
- {
- alert('hit a key');
- }
- </script>
- </head>
- <body onKeyDown="isBack(event);">
- <input type="text" id="myid">
- </body>
How to invoke javascript event onKeyDown
|