Objects >
Range
javascript Range Description
The W3C DOM Range objectsimilar in concept to the IE TextRange objectrepresents a sequence of zero or more rendered text characters in a documen
javascript Range collapsed
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
javascript Range commonAncestorContainer
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
javascript Range endContainer
Returns a reference to a document tree node that contains the current range's end point.
javascript Range endOffset
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
javascript Range startContainer
Returns a reference to a document tree node that contains the current range's start point.
javascript Range startOffset
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
javascript Range cloneContents( )
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
javascript Range cloneRange( )
Returns a Range object that is a carbon copy of the current range, including references to associated containers. This method lets you preserve a
javascript Range collapse( )
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
javascript Range compareBoundaryPoints( )
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
javascript Range compareNode( )
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
javascript Range comparePoint( )
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
javascript Range createContextualFragment( )
The createContextualFragment( ) method was initially designed as an alternative to the innerHTML convenience property (because the W3C DOM prov
javascript Range deleteContents( )
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.