Windowis the main JS object root, and can also be treated as the root of the DOM.
screenis a small information object about physical screen dimensions. The physical display’s full screen.
documentis the main object of the visible document object/model/DOM.
- Each browser tab has its own top-level
windowobject, and each
iframehas its own
windowtoo, nested within a parent window.
window.windowalways refers to
window.topmight refer to enclosing windows.
setInterval, binding event handlers to a timer.
locationgiving the current URL.
navigatordescribing the browser software
documentobject to be rendered. Then you can access stuff with
documentis your document that gets loaded into the browser.
Musings Detecting if “scrolled down” : Done by storing scrollTop and comparing with the current scrollTop value with it. However,...