Name
Object — a superclass that contains features of all JavaScript objects
Availability
Core JavaScript 1.0; ECMA-262; enhanced in JavaScript 1.1 and Navigator 4
Constructor
new Object() new Object(value)
Properties
- constructor
An object’s constructor function. JavaScript 1.1; ECMA-262.
Methods
- assign(value)
Overload the assignment operator. Navigator 3; deprecated in favor of Object.watch().
- eval(code)
Evaluate JavaScript code in a string. Navigator 3; deprecated in favor of global eval() function in Navigator 4.
- toString()
Define an object’s string representation.
- unwatch(propname)
Remove a watchpoint. Navigator 4.
- valueOf(typehint)
The primitive value of the specified object. JavaScript 1.1; ECMA-262.
- watch(propname, handler)
Set a watchpoint. Navigator 4.
Get Webmaster in a Nutshell, Second Edition 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.