Window
A window containing a DOM document; the document property points to the DOM document loaded in that window.
Properties
activeWindow
activeWindow: Window
The actively focused Window object. This is usually the same as window
but
it will be different when using popout windows.
activeDocument
activeDocument: Document
The actively focused Document object. This is usually the same as document
but
it will be different when using popout windows.