Answer Posted / Prakash Singh Bisht
In scripting, you can use the Window.onKeyDown event to catch keyboard events. Here's a simple example:
```javascript
function handleKeyDown(e) {
if (e.keyCode == 83 && (navigator.appName == 'Microsoft Internet Explorer')) { // This is the S key in IE
alert('You pressed the S key!');
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category