> Is there any way to find the window object given the document object?
IE has document.parentWindow:
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/referen
ce/properties/parentwindow.asp>
Opera 8 implements that too, Mozilla does not.
Most W3C DOM Level 2 browsers (like Mozilla or Opera) have
document.defaultView which in those browsers is the window object
(although that is not required or suggested by the W3C DOM).

Signature
Martin Honnen
http://JavaScript.FAQTs.com/
D. Patterson - 31 Oct 2005 01:31 GMT
Thanks a lot!
I looked all over and couldn't find IE's .parentWindow. I've been tearing my
hair out.
Thanks again.
D.
> > Is there any way to find the window object given the document object?
>
> IE has document.parentWindow:
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/re
ference/properties/parentwindow.asp>
> Opera 8 implements that too, Mozilla does not.
> Most W3C DOM Level 2 browsers (like Mozilla or Opera) have
> document.defaultView which in those browsers is the window object
> (although that is not required or suggested by the W3C DOM).