Window
The browser window object is the global object for a browsing context, exposing its document, JavaScript environment, and associated browser APIs.
Modern Angular
window is the browser global object that represents a document's browsing context and exposes browser-specific APIs.
- How it is used
- Uses window for browser scrolling and event handling while guarding those operations from SSR execution.
- How deep it goes
- Explains SSR failure and client-only scheduling, then demonstrates scroll listeners and scrolling, but does not cover broader window APIs.
- Examples
- Demonstrates a ScrollToTopComponent that observes scrollY and invokes smooth scrolling.
- What you can do after
- Diagnose SSR failures involving window and defer browser interactions with afterNextRender.
Secrets of the JavaScript Ninja, Second Edition
The browser-provided global object representing a browsing context and exposing browser APIs.
- How it is used
- Provides the browser global through which JavaScript accesses global objects, variables, and browser APIs.
- How deep it goes
- Defines the global object and connects its `document` property to DOM access, without detailing other browser APIs.
- Examples
- Uses `document.getElementById("first")` to select a DOM element for modification.
- What you can do after
- Understand how JavaScript accesses browser APIs and the page DOM through the global object.
Read how Secrets of the JavaScript Ninja, Second Edition explains window →
Get Programming: Learn to code with Python
A window is a bounded region of a graphical interface in which an application displays content and controls.
- How it is used
- Provides the main workspace for displaying GUI widgets and receiving user interactions.
- How deep it goes
- Explains creation, sizing, titling, coloring, and widget placement, while deferring detailed widget behavior to event handlers.
- Examples
- Uses an 800-by-200 gray window and a phonebook interface with text boxes, buttons, and a label.
- What you can do after
- Build a basic tkinter window and extend it into an interactive application with widgets.
Read how Get Programming: Learn to code with Python explains window →
.NET MAUI in Action
A window is a .NET MAUI top-level display container that hosts a page and can be opened as an application window.
- How it is used
- Provides desktop applications with an initial display container and a way to open additional page-hosting windows.
- How deep it goes
- Explains page hosting and demonstrates construction, sizing, titling, and opening, but does not detail window lifecycle management.
- Examples
- Uses an AboutPage window configured with a title and 300-by-300 dimensions.
- What you can do after
- Build it from scratch by creating a Window around a page and opening it with Application.Current.OpenWindow.
Also covered in
- Acing the Frontend InterviewIn early access (MEAP)
- React Quickly, Second Edition
- Secrets of the JavaScript Ninja, Third EditionIn early access (MEAP)
- Vanilla WebIn early access (MEAP)
What to know first
- event handlingEvent handling is the process of receiving events and invoking associated code to respond to them.
- Web APIsA Web API is a programming interface exposed by a web browser or web platform for accessing browser or platform capabilities and services.
Related concepts
- global objectkind of · The global object is the top-level JavaScript object that provides globally accessible properties, functions, and bindings within an execution environment.
- global execution contextequivalent to · The outermost JavaScript execution context in which global code is evaluated and global bindings are initialized.
- addEventListeneruses · addEventListener is a method that registers a callback to be invoked when a specified event is dispatched to an event target.
- handlercontrasts with · A handler is a software routine or component invoked to process an event, request, message, or other input.
- global variableused by · A global variable is a variable whose binding is accessible from broad program or module scopes according to the language’s name-resolution rules.
- HTML elementcontrasts with · An HTML element is a structural or semantic unit of an HTML document, defined by markup and represented in the document tree.
Questions about window
What is window?
The browser window object is the global object for a browsing context, exposing its document, JavaScript environment, and associated browser APIs.
Which Manning books explain window?
Modern Angular, Secrets of the JavaScript Ninja, Second Edition, Get Programming: Learn to code with Python and .NET MAUI in Action.
What should I know before learning window?
Manning books that teach window usually introduce event handling and Web APIs first.
What is the difference between window and handler?
The browser window object is the global object for a browsing context, exposing its document, JavaScript environment, and associated browser APIs. A handler is a software routine or component invoked to process an event, request, message, or other input.
What is window a kind of?
Window is a kind of global object. The global object is the top-level JavaScript object that provides globally accessible properties, functions, and bindings within an execution environment.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



