Easy Tutorial
❮ Dom Met Node Comparedocumentposition Dom Mozilla Vs Ie ❯

XML DOM isSameNode() Method



Definition and Usage

The isSameNode() method returns true if the node is the same as the given node, otherwise it returns false.

Syntax

Parameter Description
node Required. The node to be checked.

Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and checks if two nodes are the same node:

Example

Output:


❮ Dom Met Node Comparedocumentposition Dom Mozilla Vs Ie ❯