Browser - Document variable (DOM) - Javascript
Table of Contents
About
In a browser, the document is:
- a DOM document (in-memory tree)
- of a XML document (generally a HTML dom document)
The document is provided by the browser via its DOM webapi (Not by the Javascript engine, DOM is not a standard javascript library)
Variable
The document variable exists as a global variable
The document variable is:
- is a property of the window object
- accessible globally through an alias