onSelect (Event handler)

Some textual content in the window has been selected.

Availability:

JavaScript - 1.0
JScript - 3.0
Internet Explorer - 4.0
Netscape - 2.0
Opera browser - 3.0
Property/method value type:Boolean primitive
JavaScript syntax:-myObject.onselect = aHandler
HTML syntax:<HTMLTag onSelect="...">
Argument list:aHandlerA reference to a function object to handle the event

Selecting text in the window may be a precursor to a cut or paste operation. If the elements are able to support TextRanges, then you may want to receive a trigger when a text selection occurs.

See also:Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onClick, onMouseDown, onMouseUp, onSelectStart, Semantic event

Supported by objects:

CAPTION

Checkbox

FIELDSET

FileUpload

Input

Password

RadioButton

ResetButton

SubmitButton

TEXTAREA

TextCell