Javascript Reference
Categories: Range

javascript Range setEndAfter( ), setEndBefore( ), setStartAfter( ), setStartBefore( )

@March 15, 2008, 1:22 a.m.
setEndAfter( ), setEndBefore( ), setStartAfter( ), setStartBefore( ) Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  

setEndAfter(nodeReference) setEndBefore(nodeReference) setStartAfter(nodeReference) setStartBefore(nodeReference)

  
 

Establish the document tree locations for the individual boundary points of an existing Range object with respect to a node's edges. These methods assume that you are interested in setting a range's boundaries to places immediately before or after an existing node, and not concerned with other kinds of offsets. Range boundaries do not have to be symmetrical, allowing you to specify the start boundary relative to one node and the end boundary relative to a completely different node later in the document.

 
Parameters
 
  • Reference to any element or text node in the document tree.
 
Returned Value

None.


Powered by Linode.