createRange method

Returns an empty range object that has both of its boundary points positioned at the beginning of the document.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 1.2

Syntax

var oRange = document.createRange();

Parameters

This method has no parameters.

Return value

Type: Range

Returns a Range object, if the method succeeds.

Standards information

See also

document

 

 

Show:
© 2014 Microsoft