This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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

Attributions