MutationObserver
The MutationObserver
interface provides the ability to watch for changes being made to the DOM tree.
Functions
Link copied to clipboard
The MutationObserver method disconnect()
tells the observer to stop watching for mutations.
Link copied to clipboard
The MutationObserver method observe()
configures the MutationObserver
callback to begin receiving notifications of changes to the DOM that match the given options.
Link copied to clipboard
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.