onselect event

[This documentation is preliminary and is subject to change.]

Fires when the current selection changes.

HTML 4.01 Specification, Section 18.2.3

Syntax

HTML Attribute <element onselect = "handler(event)">
Event Property object.onselect = handler;
attachEvent Method object.attachEvent("onselect", handler)
addEventListener Method object.addEventListener("select", handler, useCapture)

Standards information

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters

Remarks

Moves the selection to a given character and highlights that selection.

To invoke this event, do one of the following:

  • Move the mouse from character to character during a drag selection.
  • Press the SHIFT key while moving the cursor over text.

The pEvtObj parameter is required for the following interfaces:

See also

Reference

onselectstart

select

 

 

Build date: 1/23/2012