Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2003
    Thanked 0 Times in 0 Posts

    question about DOM

    can somebody explain me what is DOM??

  2. #2
    Master Coder
    Join Date
    Feb 2003
    Umeň, Sweden
    Thanked 83 Times in 74 Posts
    Hmm, this is kinda the wrong forum, you should have asked in the DOM forum instead. However, I trust a mod will be here soon and correct that for you. So, I'll get to explaining it instead:

    The DOM is in short a way to, from a script, access, read and manipulate the document and it's components. W3C standardises the DOM and also provides bindings for Java and ECMAScript, to make it easy for the implementors to implement it in a way that is consistent with other implementors that are implementing it for the same language. To make a few examples, in JavaScript the object window.document refers (nowadays, this was not always the case) to the DOM interface Document. This is the base object in the hierarchy, and it contains Document-spanning methods such as getElementById, getElementsByTagName (which all elements have), createTextNode, createElement, createAttribute. Then we have the documentElement property, which refers to the root element (being the html element in HTML and XHTML). This element will in turn hold it's children, etc.

    Now, I'm not going to delve any deeper into this, as there are too many methods, properties and pecularities to mention in a post, but instead refer you to <http://www.w3.org/DOM/DOMTR> where you can find all the DOM specifications. This isn't always the most easy-to-read set of documents, however, so I will refer you to <http://www.w3schools.com/dhtml/dhtml_dom.asp> for tutorials, <http://www.quirksmode.org/> for browser support tables, and us for help.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts