JSREF
HTML DOM isSameNode() Method
Check if two nodes are, in fact, the same node: