oncontrolselect event | controlselect event
Occurs before a control is selected in an editable region.
An editable region can be specified with the contentEditable and designMode properties. To get the selected controls in an editable region, use the createRange and createRangeCollection methods. For further details, please see the pages for the mentioned properties and methods.
How to register:
|object.oncontrolselect = handler;
|object.attachEvent ("oncontrolselect", handler);
You can find the related objects in the Supported by objects section below.
The event object is accessible to all event handlers in all browsers. The properties of the event object contain additional information about the current event. To get further details about these properties and the possible event handler registration methods, please see the page for the event object.
Actions that invoke the oncontrolselect event:
- Clicking on a control element in an editable region.
Example HTML code 1:
This example illustrates the use of the oncontrolselect event:
Did you find this example helpful?
User Contributed Comments