Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Retrieves the state of the SHIFT key.
Syntax
[ bKey = ] event.shiftKeyPossible Values
bKey | Boolean that receives one of the following values.
|
The property is read-only. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Example
This example demonstrates how to retrieve the state of the SHIFT key. Any key pressed fires the onkeydown event handler, enabling you to retrieve the state of the SHIFT key. Because the onkeyup event handler only fires when a key is released, it always returns false for the SHIFT key's state. The onkeypress event handler only fires when the user presses an alphanumeric key—it will not fire if the SHIFT key is pressed.
<HTML>
Standards Information
There is no public standard that applies to this property.
Applies To
|
event |
Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |