JavaScript Tutorial in Hindi for Beginners [Part 66] - Window Object in JavaScript
In this video i will talk about Window Object in JavaScript. Two properties can be used to determine the size of the browser window. window.innerHeight - the inner height of the browser window (in pixels) window.innerWidth - the inner width of the browser window (in pixels) NOTE: The browser window (the browser viewport) is NOT including toolbars and scrollbars. The innerWidth and innerHeight properties return the size of the page viewport inside the browser window (not including the borders and toolbars). The outerWidth and outerHeight properties return the size of the browser window itself. window.outerHeight window.outerWidth The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values. The close() method closes the current window.