Easy Tutorial
❮ Prop Text Placeholder Prop Win Closed ❯

HTML DOM isEqualNode() Method

Element Object

Example

Detect if list items from two different lists are equal:

Output result:


Definition and Usage

The isEqualNode() method is used to check if two nodes are equal.

Two nodes are equal and return true if they meet the following conditions:

Tip: Use the isSameNode() method to determine if two nodes are the same.


Browser Support

All major browsers support the isEqualNode() method.

Note: Internet Explorer 8 and earlier versions do not support this method.


Syntax

Parameters

Parameter Type Description
node Node Object Required. The two nodes to compare.

Return Value

Type Description
Boolean Returns true if the two nodes are equal, otherwise returns false.

Technical Details

| DOM Version | Core Level 3 Node Object | | --- | --- |


Element Object

❮ Prop Text Placeholder Prop Win Closed ❯