What is and what are the differences between DOM, Window and Screen?

Asked

Viewed 104 times

3

I read some definitions of these objects and in my understanding window is the first thing the browser loads and the object DOM is contained in it, being the DOM the representation of HTML.

But I still don’t feel confident enough to talk about these objects properly, would you be able to help me define them more precisely?

  • https://answall.com/q/40852/101

  • Opa I had not found this question, thanks for the link

  • @Caiqueromero see several things about DOM in the list related to next

1 answer

1


In a simple approach, window is a window object DOM, a global property that provides methods referring to the root of the model, 'so window', it is within it that the DOM.

window MDN

screen is one of the methods window provides, basically stores information of window dimensions.

window.screen MDN

DOM is a long subject and has already been dealt with here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.