Web hosting colocation - O Object.watch() (Method) As a general rule,
O Object.watch() (Method) As a general rule, the valueOf() method for an object simply returns the this property of the object itself. However, the object may be a wrapper for a host object some kind. It may therefore have been created by invoking the Object constructor. In that case, the host object should be returned in an ECMA-compliant implementation. Implementations may choose to return the this property of an object or some other value if they choose. The result of this method will be implementation-and object-dependant. The native core objects are well defined and will return predictable value types. Generally these will be defined by ECMA or W3C standards. It is up to the hosting environment to provide the valueOf() interface to its own suite of objects. See also: Cast operator, Object.prototype, valueOf() Cross-references: ECMA 262 edition 2 section 15.2.2.1 ECMA 262 edition 2 section 15.2.4.3 ECMA 262 edition 3 section 15.2.4.4 Object.watch() (Method) A means of establishing a call back when a property value changes. JavaScript 1.2 Netscape 4.0 Netscape Enterprise Server version 3.0 Availability: JavaScript syntax: N myObject.watch() This is inherited by most object classes in Netscape. Warnings: . Because of the scoping rules, you cannot actually examine the value of the variable that has changed since the event handler is running in a completely different scope chain. Example code:
See also: Object.assign(), Object.unwatch(), unwatch(), watch() 1589