A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Document/createRange below:

createRange ยท WebPlatform Docs

createRange Summary

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

Syntax
var 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
DOM Level 2 Traversal and Range
Recommendation
Attributions

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