Under the assumption that many of you might want to go forward from
the other major object-oriented programming languages.
There are other predefined objects that are specific to a Navigator document such as an object for manipulating the history list maintained by Navigator.
If you want to be able to create multiple instances of the new object type, you can define a constructor function and then invoke that function using the new operator to create any number of new objects. This method of defining new object types and creating new objects has some degree of similarity with techniques used in other OOP languages.
A method is a function associated with an object. You define a method the same way you define a standard function. Then you use a special syntax to associate the function with an existing object. You can then call the method in the context of that object.
If you want the method to apply to all objects of a given type, you can define methods for an object type by including a method definition in the object constructor function.
users this to refer to the current object. In general,
this refers to the calling object when a method is called
on a specific object.