Text replacement - "<table border="0" cellspacing="0"> " to "<table border="0" cellspacing="0" width="100%">"
which allow you to access and change parts of the web page.
by looking at how to create custom objects before covering the Built-in and DOM Objects in later chapters.
== Creating and Using Object Instances ==
In the previous section we learned how to create an object definition. It is important to note that, at this point, we have only described what the object will do (we have
bascically created blueprint of the object), we have not actually created an object we can work with (this is known as an ''object instance''). Object instances are created using the ''new'' keywrod and are assigned to an object variable that will be used to reference the object. For example, in the following example we will create anew instance of the car object with the name myCar:
We have also passed through parameters to initialize the properties of the object (make, model and color).
Next we need to understand how to call a method on an object and access an object property. This is achieved by using what is called dot
noation on the name of the object instance:
To access a property:
In our example we have a method called displayCar() to the 3 properties of the object.
Follwoing the above dot notation syntax we can call this method as follows:
== Extending Objects ==