onselectstart event | selectstart event
Occurs at the start of a selection process.
The onselectstart event is cancelable, if you cancel it, the selection process does not start.
How to register:
|object.onselectstart = handler;|
|object.addEventListener ("selectstart", handler, useCapture);|
|object.attachEvent ("onselectstart", 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 onselectstart event:
The order of events related to the onselectstart event:
Example HTML code 1:
This example illustrates the use of the onselectstart event:
Did you find this example helpful?
User Contributed Comments