Firefox Tomorrow

web api instance property

MutationEvent: relatedNode property

View on MDN ↗

The relatedNode read-only property of the MutationEvent interface returns a string indicating the node related to the event, like the changed node inside the subtree for DOMSubtreeModified.

Value

A string.

Examples

element.addEventListener("DOMSubtreeModified", (event) => {
  console.log(event.relatedNode);
});

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.