Selection Prototype

Defines the properties and methods inherited by objects in the Selection prototype chain.

Syntax

HTML N/A
Scripting Selection.prototype

Members Table

The following table lists the members exposed by the Selection Constructor object.

Attributes/Properties

Property Description
type Retrieves the type of selection.
typeDetail Retrieves the name of the selection type.

Methods

Method Description
clear Clears the contents of the selection.
createRange Creates a TextRange object from the current text selection, or a controlRange collection from a control selection.
createRangeCollection Creates a TextRange object collection from the current selection.
empty Cancels the current selection, sets the selection type to none, and sets the item property to null.

Remarks

For more information on this and other DOM Prototypes see Document Object Model Prototypes, Part 1: Introduction.

This prototype does not derive from any objects.

Applies To

selection

加支付宝好友偷能量挖...


评论(0)网络
阅读(115)喜欢(0)HTML/CSS兼容/XML