473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting window from document

Greetings,

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

TIA,
D. Patterson
Oct 30 '05 #1
2 1421


D. Patterson wrote:
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/reference/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).
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 30 '05 #2
Thanks a lot!
I looked all over and couldn't find IE's .parentWindow. I've been tearing my
hair out.
Thanks again.

D.

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:43***********************@newsread2.arcor-online.net...


D. Patterson wrote:
Is there any way to find the window object given the document object?
IE has document.parentWindow:

<http://msdn.microsoft.com/library/de...uthor/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).
--

Martin Honnen
http://JavaScript.FAQTs.com/

Oct 31 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dan glenn | last post by:
hi. I want to code a 'preview' function into a guestbook entry page. I can do it with a button that posts, bringing up a whole new page showing a preview of what has been entered, and then the user...
1
by: Martin | last post by:
There seems to be some strange behaviour when trying to get the scrollHeight and scrollTop of an iframe in IE6. I have tried several ways of getting these values when the iframe is written into...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
4
by: gimme_this_gimme_that | last post by:
Hi, This is sort of a : How to build a Yes/No dialog box qquestion. Or perhaps a question about getting javascript variables from a pop-up window and processing them on a submit. This is...
15
by: Aaron Gray | last post by:
<iframe name="iframe" width="100%" height="25%" src="test1.txt"> </iframe> <a href="test1.txt" target="input">one</a> <a href="test2.txt" target="input">two</a> <form name="form1"> <textarea...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
1
by: tsangkinyip | last post by:
Hi there, I have a diary page where I would like to fade in the text content and an image when a user tries to click on a date in the calendar. Things work fine offline, but when I upload the...
6
by: DRS.Usenet | last post by:
When I run alert("page contents:" + content.document.documentElement.innerHTML); I am able to pull the content. I see something like this page contents:<head><title>A Title</title>...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.