Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

MutationObserver

Description

The MutationObserver of MutationObserver for JS constructs a MutationObserver object and sets its callback to callback. The callback is invoked with a list of MutationRecord objects as first argument and the constructed MutationObserver object as second argument. It is invoked after nodes registered with the observe() method, are mutated.

Syntax

observer = new MutationObserver(callback)

Parameters

callback

The callback that will be invoked when the event is dispatched.

Examples

disconnect

observe

takeRecords

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu