observe method

observe

Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). The options argument allows for setting mutation observation options via object members.

def observe(self, target):
    ...
ParameterTypeDescription
targetNodeThe target for observe.

observe

Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). The options argument allows for setting mutation observation options via object members.

def observe(self, target, options):
    ...
ParameterTypeDescription
targetNodeThe target for observe.
optionsMutationObserverInitThe observer options.

See Also