Changes

Jump to: navigation, search

JavaScript Object Basics

No change in size, 18:47, 19 September 2008
An Overview of JavaScript Objects
Document Object Model (DOM) Objects provide the foundation for creating dynamic web pages. The DOM provides the ability for a JavaScript script to access, manipulate, and extend the content of a web page dynamically (i.e without having to reload the page). The DOM essentially presents the web page as a tree hierarchy of objects representing the contents and elements of the web page. These objects, in turn, contain ''properties'' and ''methods'' which allow you to access and change parts of the web page.
Custom objects are objects that you, as a JavaScript developer, create and use. Creating a custom object is possibly the best way to fully understand what objects are, so in this chapter we will by be looking at how to create custom objects before covering the Built-in and DOM Objects in later chapters.
== Creating a Custom JavaScript Object ==

Navigation menu