1

I know that there is something called the DOM in javascript. But why isnt there such a thing as a Window Object Model? Doesn't the DOM-tree look like this?:

window <- document <- html <- head //etc
1
  • 3
    Strictly speaking the window object model exists and in addition to the document (which is the representation of the HTML) it also includes the global Javascript scope. But this is not relevant for rendering the page, only the DOM is Commented Oct 2, 2012 at 9:42

3 Answers 3

2

Because the document object model describes how the document is built, and you are the one defining it.

The 'window' is purely a issue of presentation and has nothing to do with the document itself. You are not defining a window or anything about the window.

Sign up to request clarification or add additional context in comments.
1

window object is in fact browser dependent part of presentation tier.

document object is built depending on the very content of a file (web page) a browser reads.

0

Window object is part of the DOM. I suggest you the following articles:

Your Answer

Draft saved
Draft discarded

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.