createControlRange method

This topic has not yet been rated - Rate this topic

Creates a controlRange collection of nontext elements.

Syntax

var retval = body.createControlRange();

Parameters

This method has no parameters.

Return value

Type: Object

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

Standards information

There are no standards that apply here.

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.

Examples

This example creates a controlRange by using the createControlRange method.


oControlRange = document.body.createControlRange();

See also

body
createRange

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.