variables can be written in a fashion such as:
|
parentobject.property1[index1].property2..finalproperty[indexN]
|
Note there is no hierarchical inheritance in definition of objects 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 Netscape and those defined by user.
|
Here is an example of a Netscape object with a typical property and method
-
document is a Netscape object typically defined by a .html page
-
document.writeln is method of this object which outputs string followed by a newline
-
document.location is a property of this object containing its URL
|