intersectsNode method (Range)
Returns whether the specified node and the current Range object have an intersection.
Note: The support for the intersectsNode method has been removed in Firefox 3. Use the compareBoundaryPoints method instead.
You can find the related objects in the Supported by objects section below.
|Required. Reference to the node to check.|
Boolean. One of the following values:
|The specified node and the current Range object have no intersection.|
|The specified node and the current Range object have an intersection.|
Example HTML code 1:
This example illustrates the use of the intersectsNode method:
Did you find this example helpful?
User Contributed Comments