target

The target JS MutationRecord returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.

Syntax

record.target

Examples

addedNodes

attributeName

attributeNamespace

nextSibling

oldValue

previousSibling

removedNodes

type

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu