> For the complete documentation index, see [llms.txt](https://docs.novarietygames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novarietygames.com/websitecreator/luascript/dom/document.md).

# Document

The **`Document`** interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the [DOM tree](https://developer.mozilla.org/en-US/docs/Web/API/Document_object_model/Using_the_Document_Object_Model#what_is_a_dom_tree).

Valid Document Functions

<table><thead><tr><th>Function</th><th>Documentation</th><th data-hidden></th></tr></thead><tbody><tr><td>querySelector</td><td><a data-mention href="/websitecreator/luascript/dom/document/queryselector.md">querySelector</a></td><td></td></tr><tr><td>getElementById</td><td><a data-mention href="/websitecreator/luascript/dom/document/getelementbyid.md">getElementById</a></td><td></td></tr><tr><td>createNode</td><td><a data-mention href="/websitecreator/luascript/dom/document/createnode.md">createNode</a></td><td></td></tr><tr><td>cloneNode</td><td><a data-mention href="/websitecreator/luascript/dom/document/clonenode.md">cloneNode</a></td><td></td></tr><tr><td>title</td><td><a data-mention href="/websitecreator/luascript/dom/document/title.md">title</a></td><td></td></tr><tr><td>addEventListener</td><td><a data-mention href="/websitecreator/luascript/dom/document/addeventlistener.md">addEventListener</a></td><td></td></tr><tr><td>dispatchEvent</td><td><a data-mention href="/websitecreator/luascript/dom/document/dispatchevent.md">dispatchEvent</a></td><td></td></tr></tbody></table>
