Objects >
Range
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 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 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 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 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 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 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 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 toString( )
Returns a string of the body content contained by the range. No tags or attributes accompany the returned value.
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
<
16-25 / 25
Powered by Linode.