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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.