1 |
Variables are written in object-oriented fashion:
|
2 |
parentobject.prop1[index1].prop2..propN[indexN]
|
3 |
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
|
4 |
Object methods are naturally referred to as
|
5 |
object...property.method(arguments)
|
6 |
Methods, objects, and properties are naturally divided into those defined by Navigator and those defined by the user.
|
7 |
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
|