createControlRange

HTML (DHTML)

createControlRange Method

Internet Development Index

Creates a controlRange collection of nontext elements.

Syntax

oControlRange = BODY.createControlRange()

Return Value

Returns a controlRange collection.

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 using the createControlRange method.

oControlRange = document.body.createControlRange();

Standards Information

There is no public standard that applies to this method.

Applies To

BODY

See Also

createRange