Is there a way to check if two DOM elements are equal?

Viewed 59814

It's no problem to find an element by position and the position of an element in Javascript. But is there are general way to compare them?

The only way I could think of is comparing ids or classnames, but not all elements have ids or classnames.

3 Answers
Related