Document: selectstart event

The selectstart event of the Selection API is fired when a user starts a new selection.

If the event is canceled, the selection is not changed.

Bubbles Yes
Cancelable Yes
Interface Event
Event handler property onselectstart

Examples

document.addEventListener('selectstart', function() {
  console.log('Selection started'); 
}, false);

Specifications

Specification Status Comment
Selection API
The definition of 'selectstart' in that specification.
Working Draft Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.Document.selectstart_event" (depth: 1) to the MDN compatibility data repository.

See also

Document Tags and Contributors

Last updated by: irenesmith,