sesaparcours
    Preparing search index...

    The MutationObserver interface provides the ability to watch for changes being made to the DOM tree.

    MDN Reference

    interface MutationObserver {
        disconnect(): void;
        observe(target: Node, options?: MutationObserverInit): void;
        takeRecords(): MutationRecord[];
    }
    Index

    Methods

    • The MutationObserver method disconnect() tells the observer to stop watching for mutations.

      MDN Reference

      Returns void

    • The MutationObserver method observe() configures the MutationObserver callback to begin receiving notifications of changes to the DOM that match the given options.

      MDN Reference

      Parameters

      Returns void

    • The MutationObserver method takeRecords() returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty.

      MDN Reference

      Returns MutationRecord[]