Name

unwatch(), watch() — NN 4 IE n/a ECMA n/a

Synopsis

unwatch(property
watch(property, funcHandler)

These Navigator-specific functions are used primarily by JavaScript debuggers. When a statement invokes the watch() function for an object, the parameters include the property whose value is to be watched and the reference to the function to be invoked whenever the value of the property is changed by an assignment statement. To turn off the watch operation, invoke the unwatch() function for the particular property engaged earlier.

Returned Value

Nothing.

Parameters

property

The name of the object’s property to be watched.

funcHandler

The name of the function (no parentheses) to be invoked whenever the watched property’s value changes.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.