> 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="/pages/fMYh3ZndEb2M5UUBO0qG">/pages/fMYh3ZndEb2M5UUBO0qG</a></td><td></td></tr><tr><td>getElementById</td><td><a data-mention href="/pages/HERUqrXlKhxqywPZpxTn">/pages/HERUqrXlKhxqywPZpxTn</a></td><td></td></tr><tr><td>createNode</td><td><a data-mention href="/pages/fiPG5ozZs6uQgnXy0J3J">/pages/fiPG5ozZs6uQgnXy0J3J</a></td><td></td></tr><tr><td>cloneNode</td><td><a data-mention href="/pages/t2wtGMbP4WQkWjgyS3Kh">/pages/t2wtGMbP4WQkWjgyS3Kh</a></td><td></td></tr><tr><td>title</td><td><a data-mention href="/pages/kpJLF8diDEuOhA6YWs56">/pages/kpJLF8diDEuOhA6YWs56</a></td><td></td></tr><tr><td>addEventListener</td><td><a data-mention href="/pages/imbz2fLSuLpFHnd3zbK0">/pages/imbz2fLSuLpFHnd3zbK0</a></td><td></td></tr><tr><td>dispatchEvent</td><td><a data-mention href="/pages/RNf9UGQ2fHafpRuFh1uv">/pages/RNf9UGQ2fHafpRuFh1uv</a></td><td></td></tr></tbody></table>
