Javascript Reference
Objects > Range
javascript Range setEndAfter( ), setEndBefore( ), setStartAfter( ), setStartBefore( )
Establish the document tree locations for the individual boundary points of an existing Range object with respect to a node's edges. These methods
javascript Range toString( )
Returns a string of the body content contained by the range. No tags or attributes accompany the returned value.
javascript Range surroundContents( )
Encapsulates the current range with a new container, usually a new element node created via the document.createElement( ) method. End points of th
javascript Range setEnd( ), setStart( )
Establish the document tree locations for the individual boundary points of an existing Range object. Similar to the IE TextRange object's set
javascript Range selectNode( ), selectNodeContents( )
Sets the range's boundary points to encompass a node or just the node's contents. Despite the methods' names, no body text in the rendered document is
javascript Range isPointInRange( )
Returns Boolean true if the location denoted by the parameter values (a node in the document tree and an offset location within that node) is with
javascript Range intersectsNode( )
Returns Boolean true if any part of the current range overlaps with the text or element node that is passed as a parameter. If your script detects
javascript Range insertNode( )
Inserts a node at the start of the current text range. Most useful when the range is already collapsed as a text insertion pointer. The node being i
javascript Range extractContents( )
Returns a DocumentFragment node containing the contents of the current range, after removing the contents from the document tree. Not working in N
javascript Range detach( )
Destroys the current Range object to the extent that invoking most methods on the object or accessing its properties throw a RangeException of t
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
javascript Range createContextualFragment( )
The createContextualFragment( ) method was initially designed as an alternative to the innerHTML convenience property (because the W3C DOM prov
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 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 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
1-15 / 25 >

Powered by Linode.