onkeydown event for htmlelement (JavaScript 1.0)

Fires when a user presses down on a key while the element has focus.

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 5.0

Browser Support

Examples having uses of JavaScript event 'onkeydown'

0 votes

JavaScript Keyboard Events

This event are fired when a key is pressed. IE 8 and earlier use event.keyCode to retrieve the key that was pressed down, while Firefox/Chrome/Safari/Opera use event.which.