The window object in JavaScript stands for the current web page that is being
seen in a browser window. It gives access to the browser’s methods and
attributes as the global object in the browser environment. The window object is
the global object in the web browser environment. It represents the current
window or frames that the JavaScript code is running in.
Click here to test the application.