window.document returns a reference to the document contained in the window.
window.document
A document object.
console.log(window.document.title);