createControlRange Method

Creates a controlRange collection of nontext elements.

Syntax

oControlRange = object.createControlRange()

Return Value

Returns a controlRange collection if sucessful or a null value otherwise.

Remarks

Creates a selection range object for control-based selection rather than text-based selection.

If a controlRange already exists, createControlRange overwrites the existing element; otherwise, it returns a pointer to the element created.

Example

This example creates a controlRange by using the createControlRange method.

oControlRange = document.body.createControlRange();

Standards Information

There is no public standard that applies to this method.

Applies To

BODY, Element Constructor

See Also

createRange

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


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