Web features explorer

MutationObserver

Widely available
Tags: api

The MutationObserver API watches for changes to the DOM tree and calls a callback function when DOM changes occur. To learn more, see MutationObserver, MutationObserver: MutationObserver() constructor, MutationObserver: disconnect() method, MutationObserver: observe() method, MutationObserver: takeRecords() method, MutationRecord, MutationRecord: addedNodes property, MutationRecord: attributeName property, MutationRecord: attributeNamespace property, MutationRecord: nextSibling property, MutationRecord: oldValue property, MutationRecord: previousSibling property, MutationRecord: removedNodes property, MutationRecord: target property, MutationRecord: type property at MDN.

Compatibility