When an event is being processed, you may want to know the state of the [alt] key on the keyboard.
This Boolean property returns true when the [alt] key is pressed and false when it is not.
This property reflects the state of the [alt] key at the instant when the event was triggered. The user may have released the [alt] key in the meantime so you should not assume that if the [alt] key was pressed earlier on that it is still pressed when the event handler is being executed.
See also: | Event.altKey |
Prev | Home | Next |
MouseEvent object | Up | MouseEvent.button |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |