Google News
logo
UI Developer - Interview Questions
What is the difference between a document and a window?
A window object has properties such as inner width, inner height, length, whether it was previously closed, its parent, and its name. The window is the first thing loaded into the browser. 

The document object is defined as any document that gets loaded inside the window object, such as HTML, ASPX, or PHP, and has properties such as cookies, title, and URL, to name a few.
Advertisement