e01.org

Document environment

When the JavaScript global environment is a window or an iframe, it is called a document environment. A global environment is an environment that doesn't have an outer environment.

When the JavaScript global environment is a window or an iframe, it is called a **document environment**. A global environment is an environment that doesn't have an outer environment.

## See also

- [document environment](https://html.spec.whatwg.org/multipage/webappapis.html#document-environment) in the HTML specification

source: MDN Web Docs mirror · page

Cite this

"Document environment". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Glossary/Document_environment

JSON record · API collection · citation policy