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 DOM 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 "DOM" Watch "DOM" New topic


Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi All,
Can anybody explain me what is DOM? and how I can use the API of DOM to update any cell of table of HTML?(by example)
Thanks in advance!
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Learn DOM from here:
An example link for your questions in your other post.
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
In very simple terms the DOM standing for Document Object Model is the model for all of the objects in your page. So every tag is its own object with properties and characteristics like the body tage has marginheight and bgcolor and the a tag has href and alt text. This is one area where IE excels over Netscape (however I believe Netscape 6.0 is better than older versions of Netscape). In IE, every tag is part of the DOM, body tags, form tags, form element tags, etc... but with Netscape they didn't make every element part of the DOM so you can't access certain elements with javascript like the b tag.
To access an item, you just give it a name, like <td name=r1c1> then you can use javascript to say chang the text of r1c1. I can't remember what tags are supported by netscape, so I tend to use div tags for most things since that is supported by both.
Do a search for the DOM on most search engines and see what you find.
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi Roseanne and Bill,
Thanks a bunch!
I agree. Here's the link:
subject: DOM
It's not a secret anymore!