DOM MutationObserver

[ ]

A document observation mechanism is represented with MutationObserver , that is easy to configure, and it is used to register listeners that can be notified of any changes in the document tree. The following example demonstrates the implementation of MutationObserver and how to use it to observe adding new nodes to the document.