Document.selection (Property)

The selected text within the object.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Selection object
JavaScript syntax:IEmyDocument.selection

This is the MSIE equivalent functionality to the Netscape document.getSelection() method.

Any selected text is returned by a request for this property.

Warnings:

See also:Document object, Document.getSelection(), Selection object

Property attributes:

ReadOnly.