25.159. HTMLElement.onkeydown: event handler invoked when the user presses a keyDOM Level 025.159.1. SynopsisFunction onkeydown 25.159.2. DescriptionThe 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 AlsoHTMLElement.onkeypress; Chapter 17 |