This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How does DOM work ?" Watch "How does DOM work ?" New topic
Author

How does DOM work ?

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 364
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.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

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: http://aspose.com/file-tools
 
subject: How does DOM work ?
 
Similar Threads
Adding an attribute to an element
Javascript API
jQuery question
Errors in DOM/SAX Mock exams ???
Java & XML