ctrlKey property (event)
Sets or retrieves whether the left or right CTRL key was down at the time when the event occurred.
In Internet Explorer, use the ctrlLeft property to detect whether the left or right CTRL key is down.
You can find the related objects in the Supported by objects section below.
The ctrlKey property is read-only, except if the event object is created with the createEventObject method when it is read/write.
Boolean, one of the following values:
|CTRL key is up.|
|CTRL key is down.|
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the ctrlKey property:
Did you find this example helpful?
User Contributed Comments