MutationObserver
MutationObserver provides developers a way to react to changes in a DOM.
Creates a new mutation observer with the provided callback.
Registers the MutationObserver instance to receive
notifications of DOM mutations on the specified node.
Registers the MutationObserver instance to receive
notifications of DOM mutations on the specified node.
Stops the MutationObserver instance from receiving
notifications of DOM mutations. Until the observe()
method is used again, observer's callback will not be invoked.
Empties the MutationObserver instance's record queue and
returns what was in there.