Window is a global object of JavaScript while document is a property of the window object.
Window includes the following and more:
šµ Global functions
šµ Location
šµ History
šµ Web Components
šµ setTimeout
šµ XML-Http Request
šµ Console
šµ LocalStorage
Document includes the following:
šµ DOM (Document Object Model) of the page
šµ Methods that traverse the DOM
Top comments (0)