Name
Object — NN 4 IE J3 ECMA 1
Synopsis
An Object
represents a customizable object. Use the Object
object to generate “things” in your scripts whose
behaviors are defined by custom properties and/or methods. Most
typically, you start by creating a blank object with the constructor
and then assign values to new properties of that object.
Navigator 4 also lets you assign properties and values via a special
literal syntax that also creates the Object
instance in the process:
var myObject = {prop1Name
:prop1Value
[,prop2Name
:prop2Value
[, ...propNName
:propNValue
]]}
You can use objects as data structures for structured custom data in your scripts, much like creating an array with named index values.
Creating a Boolean Object
var myObject = new Object()
Properties
prototype |
Methods
toString() |
valueOf() |
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.