onselectstart event

Fires when the object is being selected.

Syntax

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

Event information

Synchronous No
Bubbles Yes
Cancelable Yes

Event handler parameters

  • pEvtObj [in]
    Type: [IHTMLEventObj](aa703876(v=vs.85).md)

Standards information

There are no standards that apply here.

Remarks

The object at the beginning of the selection fires the event.

Moves the selection to an object and highlights that selection.

To invoke this event, do one of the following:

  • Begin selecting one or more objects.

The pEvtObj parameter is required for the following interfaces:

See also

Reference

HTMLOptionButtonElementEvents2::onselect

IHTMLInputElement::select