Name
unwatch(), watch() — NN 4 IE n/a ECMA n/a
Synopsis
unwatch(propertywatch(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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access