Johan
Johan

Reputation: 35194

window object model?

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

Answers (3)

Alberto De Caro
Alberto De Caro

Reputation: 5213

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

Upvotes: 0

Krzysztof Jabłoński
Krzysztof Jabłoński

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

PhonicUK
PhonicUK

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

Related Questions