August 1999
Intermediate to advanced
1488 pages
72h 53m
English
object.prototype.property object.prototype.method
The prototype property of the Object object allows the addition of properties or method to the Object class.
Listing 6.194 shows how the prototype property is used.
<html> <body> <script language="JavaScript"> <!––Hide Object.prototype.newProperty = 2; document.write(document.object.newProperty.value); // End Hide ––> </script> </body> </html> |
Read now
Unlock full access