This page describes techniques to add interactivity to your web page
By the end of this page you will be able to:
Detecting a keypress
Be aware that you can get the browser tangled if you use Browser trigger keys (e.g. F11 makes the Browser go full screen). If you are using an editor plug-in the editor may use hotkeys also (e.g. Home, End).
- Some additional resources:
Example :Click here to run jsInt_onkeydown.htm.
- Hotkeylist (2010). Internet Explorer Hotkey, IE Browser Hotkeys, Shortcut Keys. Retrieved March 14, 2010 from http://hotkeyslist.com/internet-explorer-hotkey-ie-browser-hotkeys-shortcut-keys/
- Koch, P-P. (n.d.) Detecting keystrokes. Retrieved March 14, 2010 from http://www.quirksmode.org/js/keys.html