Javascript Reference
Categories: Global

javascript Global unwatch( ), watch( )

@March 15, 2008, 1:22 a.m.
unwatch( ), watch( )Firefox/Netscape/NN 4 IE n/a ECMA n/a  

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.

 
Parameters
 
  • The name of the object's property to be watched.
  • The name of the function (no parentheses) to be invoked whenever the watched property's value changes.
 
Returned Value

Nothing.


Powered by Linode.