Variables are written in object-oriented fashion:
|
parentobject.prop1[index1].prop2..propN[indexN]
|
There is no hierarchical inheritance in object definitions, but the ability to define object properties that are themselves objects creates a natural hierarchical naming scheme
|
Object methods are naturally referred to as
|
object...property.method(arguments)
|
Methods, objects, and properties are naturally divided into those defined by Navigator and those defined by the user.
|
Here is an example of a Navigator object with a typical property and method
-
document is a Navigator object corresponding to an HTML page
-
document.writeln("string") is a document method, which outputs "string" followed by a newline
-
document.location is a document property containing its URL
|