2.3.4.44 onselect

Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

onselect of type Function

Occurs when the current selection changes. By default, moves the selection to a given character and highlights that selection.

To invoke, move the mouse from character to character during a drag selection, or press the SHIFT key while moving the cursor over text.

  • Bubbles: No

  • Cancelable: Yes

  • Context Info: None

The onselect attribute extends the HTMLBodyElement interface

See also onselectstart.

Show: