共用方式為


relatedNode property

Gets a second node related to a mutation event.

 

Syntax

HRESULT value = object.get_relatedNode(** p);

Property values

Type: Object

The related node.

Standards information

Remarks

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.