Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

DOM?

May 21, 2007 5:39AM PDT

can somebody explian to me what the DOM is, I know it stands for
"Document Object Model", and I read about it in wikipedia, but I still can understand exactly what it is.
I've also heard about dom scripting, which at first i thought it was dumb scripting...haha...but I would also like to know what that is.

Thanks, Marcelo.

Discussion is locked

- Collapse -
DOM
May 21, 2007 6:09AM PDT

The Document Object Model (DOM) is an API for HTML and XML documents. It provides a structural representation of the document, enabling you to modify its content and visual presentation. Essentially, it connects web pages to scripts or programming languages.
-http://developer.mozilla.org/en/docs/DOM

The Document Object Model (DOM), part of the World Wide Web Consortium's HTML 4.0 specification, strives to make every element on a page an identifiable object. Because the properties of that object are then readable and writeable, you can use a scripting language such as JavaScript to change, hide, or move the object's attributes. For example, if object #2 is an image, you can say "Move object #2 over here" and cause an image to move across a Web page. The DOM is way cool -- it provides the method to refer to and control objects.
-http://www.dummies.com/WileyCDA/DummiesTip/id-4626.html

These are the two easiest explanations.

Hope this helps.

~Sovereign

- Collapse -
so...
May 21, 2007 7:35AM PDT

DOM is not really anything...but the ability to have objects within a webpage and move them or give effects to them using scripting language like javascript, like div's pictures and stuff like that.
So DOM scripting is basically javascript.

is that kind of right?

- Collapse -
More detail
May 21, 2007 8:41AM PDT
- Collapse -
Also
May 21, 2007 1:35PM PDT

Something you may want to look into, if you have Firefox, is the DOM Inspector... Tools > DOM Inspector. It shows you the structures of websites, and gives you a better understanding of what you are looking at.

Hope that helps further.

~Sovereign

- Collapse -
thanks...
May 22, 2007 5:01AM PDT

that article was much better, can wait till my javascript class next fall.

Thanks for your time, Marcelo.