selectstart
Selectstart refers to a browser event that fires when a user begins selecting text within a document. The concept originated in Internet Explorer as the onselectstart event, and various engines historically offered similar behavior to control text selection. In modern browsers, support for selectstart is uneven, and its implementation can vary or be absent. The event is cancelable, meaning a handler can prevent the default text-selection action by calling preventDefault.
Common usage involves attaching a listener to the element (or to the document) to intercept the start
For broader cross-browser control of text selection, developers typically use CSS. The property user-select (with vendor-prefixed
Related concepts include the selectionchange event, which fires when the document's selection changes, and dragstart, which