The JavaScript object
This page lists the built in objects, and collections which together comprise the JavaScript object. Some browsers may provide additional (non standard) properties or methods that do not form part of the EMCA scripting specification, or the W3C standards, that specify the components of HTML,XHTML,XML, DOM and CSS.
As well as these standards, the language has been augmented with AJAX (Asynchronous JavaScript and XML.), JSON (JavaScript Object Notation), a data-interchange format based on the Javascript object notation as well as JQuery, one of the many libraries which have been built, to supplement the Javascript language.
Each Javascript object has its own constructor and prototype property with which to extend and customise the basic functionality of the object. Web page designers can build custom objects and functions, to meet the requirements of any given application. Because (client side) Javascript is primarily intended to run within a broswer, a number of security restrictions apply which are designed to protect the users environment from malicious scripts.
Collections
Built into each document are several predefined collections. A collection is simply an array of one type of element, e.g. forms and images are two of the built in collections. As well as these built in elements, the command getElementsByTagName() allows you to build a collection from any particular tagname.
While Javascript can be run as a server side, script this role now largely falls to PHP, which is syntactically very similar to Javascript; and hence C++ and Java. The details of the properties and methods of the various objects are listed separately within this site, along with examples iluustrating the use of many of the properties and methods.
The Javascript model
| Javscript objects | Collections | W3C |
|
|
|

