Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
createRange (selection)

createRange method

Creates a TextRange object from the current text selection, or a controlRange collection from a control selection.

For the standards-based method, see createRange.


var retval = selection.createRange();


This method has no parameters.

Return value

Type: oRange

Returns the created TextRange object.

Standards information

There are no standards that apply here.

See also




© 2015 Microsoft