Javascript Reference
Categories: Range

javascript Range intersectsNode( )

@March 15, 2008, 1:22 a.m.
intersectsNode( )Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a  

intersectsNode(nodeReference)

  

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 an intersection, it can use the compareNode( ) method to obtain more detail about the intersection.

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

Boolean value: true | false.


Powered by Linode.