Is the 'window' rendered by the gift or does it come before that?

4

A curiosity: I wonder if the window is rendered by dom when loading the window, since the document is usually window.document.html . Or does dom come after this parameter?

    
asked by anonymous 13.04.2016 / 15:37

1 answer

1

Since the DOM is part of the window object, soon the window object must come first to render it. See the documentation for W3schools where it says the following:

  

Tip: The document is a part of the Window object and can be accessed through window.document.

It means that as soon as HTML is loaded, it becomes the DOM Object. Logo window is not rendered by document, but rather the other way around.

    
13.04.2016 / 21:16