relatedNode
Summary
Gets a second node related to a mutation event.
Property of dom/MutationEventdom/MutationEvent
Syntax
Note: This property is read-only.
var relatedNode = event.relatedNode;
Return Value
Returns an object of type DOM NodeDOM Node
The second node related to the event.
Notes
In a DOMAttrModified
event, the related node is the attribute node that is being modified. In a DOMNodeInserted
or DOMNodeRemoved
event, the related node is the parent node of the event target.
Related specifications
- DOM Level 2 Events
- Recommendation
See also
Related articles
Deprecated
relatedNode
Attributions
Mozilla Developer Network : [Mutation Events Article]
Microsoft Developer Network: [Windows Internet Explorer API reference Article]