We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

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
Target objects Document
Interface Event

Example

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

Inheritance

The selectstart event implements the Event interface. You can use the properties and methods defined on this interface.

Specifications

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

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? (Yes) 52 (52) ? ? ?
Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? (Yes) 52.0 (52) ? ? ?

See also

ドキュメントのタグと貢献者

このページの貢献者: erikadoyle, chrisdavidmills, Ehsan, wirmar, Nickolay, Sebastianz, teoli
最終更新者: erikadoyle,