July 1998
Intermediate to advanced
1456 pages
65h 5m
English
Object — NN 4 IE J3 ECMA 1
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.
var myObject = new Object()
prototype |
toString() |
valueOf() |
Read now
Unlock full access