Javascript Reference
Categories: Range

javascript Range isPointInRange( )

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

isPointInRange(nodeReference, offset)

  

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 within the current range.

 
Parameters
 
  • Reference to any text or element in the document tree.
  • Integer offset, counting either nested nodes within an element or characters within a text node.
 
Returned Value

Boolean value: true | false.


Powered by Linode.