document

external val document: Document(source)

window.document returns a reference to the document contained in the window.

MDN Reference