relatedNode property (event)
Returns a reference to the node on which the mutation event occurred.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Retrieves a reference to the node on which the mutation event occurred. For other mutation event types, returns null. For non-mutation events, returns undefined.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the relatedNode property:
Did you find this example helpful?
User Contributed Comments