Glossary: JavaScript in the Browser
Global object
Also written: window
The object whose properties work everywhere without a prefix. In a browser it is window, so document is really window.document.
Glossary: JavaScript in the Browser
Also written: window
The object whose properties work everywhere without a prefix. In a browser it is window, so document is really window.document.