Range
A fragment of a document that can contain nodes and parts of text nodes.
Properties
Link copied to clipboard
Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns range's end node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns range's start node.
Link copied to clipboard
Returns range's start offset.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns whether range intersects node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard