The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
isSameNode method
Determines if two node references refer to the same node.
![]() ![]() |
Syntax
object.isSameNode(otherNode)Parameters
- otherNode [in]
-
Type: IHTMLDOMNode3
The node to be compared to the node that is executing the method.
Return value
Type: Boolean
Boolean. Returns one of the following values:| Return value | Description |
|---|---|
|
The node specified in the otherNode parameter refers to the same node. |
|
The nodes are not the same node. |
Standards information
Remarks
This determines whether or not two references refer to the same node. If the references refer to the same node, you can use the references interchangeably, even when using a proxy.
See also
- a
- applet
- attribute
- audio
- button
- div
- document
- documentType
- frame
- iframe
- img
- input type=button
- input type=checkbox
- input type=email
- input type=file
- input type=hidden
- input type=image
- input type=number
- input type=password
- input type=radio
- input type=range
- input type=reset
- input type=search
- input type=submit
- input type=tel
- input type=text
- input type=url
- label
- legend
- marquee
- media
- object
- optGroup
- option
- ProcessingInstruction
- select
- source
- span
- table
- textArea
- TextNode
- video
- IHTMLDOMNode3
Show:

