From the course: The DOM in JavaScript, jQuery, AngularJS, and React

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Window object

Window object

From the course: The DOM in JavaScript, jQuery, AngularJS, and React

Start my 1-month free trial

Window object

- [Instructor] Sometimes, you want to be able to interact with the web browser window because the window object has some very resourceful properties and methods that the document object cannot provide. So, think of the window object as the superglue object which contains many other objects, including the web document object, which contains the web page, and others, for example, things like the history object, which contains the pages where the user came from, the navigator object, which is determined the type of browser you're using, and other important functions, including opening and closing windows, and so on. So, the window is a very special object because it represents the entire window. It is that window, so a tab on the browser window, it is a window as well, so that is why it's important to explore some of these important features about window, so let's look at some of these properties and methods and see how you can use them to your advantage. This right here, at the practice…

Contents