JavaScript 101: The JavaScript Object Model
- 0
- Add a Comment
Still not really understanding the basics behind Javascript yet? No worries, this tutorial will help to walk you through the basics. After you get the fundamentals firmly planted into your brain, the rest will take care of itself.
If you talk to several different Web developers, each will probably see the JavaScript object model differently. To make it easiest, I’m going to split the JavaScript object model into two separate entities. One is the DOM, or Document Object Model, and the other is “everything else.”
The DOM
Let’s first start with the DOM. The DOM, also sometimes called the DHTML object model, is generally used to create dynamic HTML (DHTML). The DOM is made up of objects and members (by “members” I mean methods, properties, and events) that allow you to change the appearance of a Web page by using code. A drop-down menu is an example of using scripting with the DOM to manipulate the visible state of a DIV element. The following image shows the core objects in the DOM. [Read the rest]
