• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does DOM work ?

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see this explanation.

In other words, what's the difference between that link and any other, except that Bear is usually more entertaining?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic