A
Additya
This tutorial will show you how to get the pressed key in the browser
window, whether it's Ctrl, Alt, Shift, Page Up, Arrow Up or any other
key. There's both an Internet Explorer and a Firefox way of doing
this.
http://www.ezdia.com/Key_Codes_for_some_keyboard_buttons/Content.do?id=782
There are several reasons why you may want to capture the key press
event in a browser window. Perhaps you're making a JavaScript game, or
a map similar to Google Maps and you want to allow navigation through
the arrow keys. Getting the pressed key is easy in JavaScript, however
different browsers use different ways for this
window, whether it's Ctrl, Alt, Shift, Page Up, Arrow Up or any other
key. There's both an Internet Explorer and a Firefox way of doing
this.
http://www.ezdia.com/Key_Codes_for_some_keyboard_buttons/Content.do?id=782
There are several reasons why you may want to capture the key press
event in a browser window. Perhaps you're making a JavaScript game, or
a map similar to Google Maps and you want to allow navigation through
the arrow keys. Getting the pressed key is easy in JavaScript, however
different browsers use different ways for this