Reputation: 35194
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
Upvotes: 1
Views: 136
Reputation: 5213
Window object is part of the DOM. I suggest you the following articles:
Upvotes: 0
Reputation: 1941
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.
Upvotes: 1
Reputation: 13844
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.
Upvotes: 2