Creates an empty Range instance object that has both of its boundary points positioned at the beginning of the document. After a Range is created, you must set its starting and ending boundary points before you can make use of most of its methods.
Method of dom/Documentdom/Document
Syntaxvar range = document.createRange();
Return Value
Returns an object of type DOM NodeDOM Node
An empty Range instance object.
Examples
var myRange = document.createRange();
myRange.setStart(startNode, startOffset);
myRange.setEnd(endNode, endOffset);
Related specifications
Mozilla Developer Network : Article
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4