This topic has not yet been rated - Rate this topic

onselectionchange event

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

Fires when the selection state of a document changes.

Syntax

HTML Attribute <element onselectionchange = "handler(event)">
Event Property object.onselectionchange = handler;
attachEvent Method object.attachEvent("onselectionchange", handler)

Standards information

There are no standards that apply here.

Event information

SynchronousNo
BubblesNo
CancelableNo

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Remarks

To invoke this event, do one of the following:

  • Cause the selection object's type property to change.
  • Return a range from a different location when using the createRange method of the selection object.
  • Move the insertion point in an editable region of the document using the mouse or keyboard.
  • Refresh the page when an editable region has focus.
  • Start or extend a text selection by dragging the mouse or using SHIFT+an arrow key.
  • Make a control selection in an editable region of the document.
  • Add or remove an element from a multiple selection by pressing SHIFT while clicking on the element.
  • Delete text or an element in an editable region of the document by using the BACKSPACE key, DELETE key, CTRL+X, or the Delete command.
  • Insert text or an element in an editable region of the document by using CTRL+V or the Paste command.

The pEvtObj parameter is required for the following interfaces:

  • HTMLAnchorEvents2
  • HTMLAreaEvents2
  • HTMLButtonElementEvents2
  • HTMLControlElementEvents2
  • HTMLDocumentEvents2
  • HTMLElementEvents2
  • HTMLFormElementEvents2
  • HTMLImgEvents2
  • HTMLFrameSiteEvents2
  • HTMLInputFileElementEvents2
  • HTMLInputImageEvents2
  • HTMLInputTextElementEvents2
  • HTMLLabelEvents2
  • HTMLLinkElementEvents2
  • HTMLMapEvents2
  • HTMLMarqueeElementEvents2
  • HTMLObjectElementEvents2
  • HTMLOptionButtonElementEvents2
  • HTMLScriptEvents2
  • HTMLSelectElementEvents2
  • HTMLStyleElementEvents2
  • HTMLTableEvents2
  • HTMLTextContainerEvents2
  • HTMLWindowEvents2

See also

Modifying Documents in Edit Mode

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ