Properties and Methods

The hundreds of window members fall into a few groups.

The main groups of window members
The main groups of window members

Members in the dashed box also exist in Web Workers, which have no document; write globalThis for code that runs in both. Top-level function declarations become window properties, but let, const and class declarations do not. isSecureContext is true on HTTPS and localhost, which APIs such as the clipboard require. Beware that every id attribute also creates a window property: <div id="cart"> makes a global cart.