File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes How does DOM work ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How does DOM work ?" Watch "How does DOM work ?" New topic

How does DOM work ?

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 386
Document Object Model (DOM), is the one that comes up as a result of mapping all the tags of an HTML document.

Javascript can access this DOM and make interactive changes based on events.

Where does DOM API come in picture ? Is DOM API responsible for mapping all the tags of an HTML document ?

Is DOM and DOM API one and same thing or different ?

Please explain this basic concept. As I need to use it.

I tried to understandd it from a book, but was more confused after reading.

Please dont point to links.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

The DOM is the hierarchy of objects that represent the element in the HTML markup that describes an HTML page.

The DOM API is the collection of methods and objects used to manipulate the DOM. Many of these methods exist upon the DOM elements themselves.

[Asking smart questions] [About Bear] [Books by Bear]
David Newton

Joined: Sep 29, 2008
Posts: 12617

Please see this explanation.

In other words, what's the difference between that link and any other, except that Bear is usually more entertaining?
I agree. Here's the link:
subject: How does DOM work ?
It's not a secret anymore!