Objects > Range
The W3C DOM Range objectsimilar in concept to the IE TextRange objectrepresents a sequence of zero or more rendered text characters in a documen
Returns Boolean true if the range's start and end points are at the same location, encompassing zero characters. A collapsed range can be located
Returns a reference to a document tree node that is the next outermost container that encompasses the current range's start and end points. If the s
Returns a reference to a document tree node that contains the current range's end point.
Returns an integer count of characters or nodes for the end point's location within the node reported by the endContainer property. If the endCo
Returns a reference to a document tree node that contains the current range's start point.
Returns an integer count of characters or nodes for the start point's location within the node reported by the startContainer property. If the s
Returns a DocumentFragment node containing a copy of the contents from the current range. Any dangling nodes are resolved as part of the cloning p
Returns a Range object that is a carbon copy of the current range, including references to associated containers. This method lets you preserve a
Shrinks the current range to an insertion point (start and end points are in the same node at the same offset). The Boolean parameter controls wheth
Returns an integer code indicating the relative positioning of one boundary point of the current range's against a boundary point of a different tex
A Netscape-only method that returns an integer code indicating the relative position of some other node with respect to the current range. Four plai
A Netscape-only method that returns an integer code indicating the relative position of some other node and offset within that node with respect to
The createContextualFragment( ) method was initially designed as an alternative to the innerHTML convenience property (because the W3C DOM prov
Removes the contents of the current text range from the document tree. If the range is an element node (e.g., with boundaries established via the s
1-15 / 25 >
Powered by Linode.