How do I get the Window object from the Document object? March 26, 2023 by Tarik You can go with document.defaultView if you’re sure its a window and its okay to skip Microsoft browsers before IE 9.