Not TestedTesting not done, may not work properly
DOM & HTML

Mutation Observer

Watch for structural and attribute changes made to the DOM tree.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

const observer = new MutationObserver((mutations) => console.log(mutations));
observer.observe(document.body, { childList: true, subtree: true });

About the Mutation Observer Web API

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

Specification:W3C & WHATWG Web API Standard
Sponsored Content