observe method

void observe(
  1. Node target, [
  2. MutationObserverInit options
])

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

Depending on the configuration, the observer may watch a single Node in the DOM tree, or that node and some or all of its descendant nodes.

To stop the MutationObserver (so that none of its callbacks will be triggered any longer), call MutationObserver.disconnect.

Implementation

external void observe(
  Node target, [
  MutationObserverInit options,
]);