contentDocument

Retrieves the document object of the page or frame.

MDN Reference