# The Browser Window: Dialogs, Screen Size and the Global Object

The window object is the browser tab around the page: its alert, confirm and prompt dialogs and what each gives back, the window's size against the screen's, and why the names you use without a dot live on it.

![Cheat sheet for The Browser Window in JavaScript: dialogs, screen size and the global object; document is the page, window is everything around it](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/41e8408d0fcf4509a3455ea26dc561e5.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: alert(), confirm(), Global Object, JavaScript, prompt, Viewport (css), Window Object
- Author: Gregor Dzierzon
- Updated: November 25, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-page-basics-the-browser-window-cheat-sheet
