Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / October 2005



Tip: Looking for answers? Try searching our database.

Getting window from document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
D. Patterson - 30 Oct 2005 15:53 GMT
Greetings,

Is there any way to find the window object given the document object?

TIA,
D. Patterson
Martin Honnen - 30 Oct 2005 17:08 GMT
> 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).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.