Section 25.159. HTMLElement.onkeydown: event handler invoked when the user presses a key


25.159. HTMLElement.onkeydown: event handler invoked when the user presses a key

DOM Level 0

25.159.1. Synopsis

 Function onkeydown 

25.159.2. Description

The onkeydown property of an HTMLElement object specifies an event-handler function that is invoked when the user presses a key while the element has keyboard focus. Determing which key or keys were pressed is somewhat browser-dependent. See Chapter 17 for details.

The onkeydown handler is usually the prefered handler for function keys, but use onkeypress to respond to regular alphanumeric key presses.

25.159.3. See Also

HTMLElement.onkeypress; Chapter 17




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net