This article needs a technical review. How you can help.
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.
Learn More
Technical reference
- document environment in the HTML specification