473,497 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessing Another Internet Explorer Browser Window

Hi,

I'm not sure if this is possible, but I'm looking for a way to access
another IE browser window using JavaScript (assuming the two browser
windows are running in the same instance).

The purpose of this task is so that if a user hits ctrl+n in IE, the
new window is "aware" of the other instance.

Thanks in advance,
Tim.

Sep 5 '06 #1
2 1391
ct*******@gmail.com said the following on 9/4/2006 10:07 PM:
Hi,

I'm not sure if this is possible, but I'm looking for a way to access
another IE browser window using JavaScript (assuming the two browser
windows are running in the same instance).

The purpose of this task is so that if a user hits ctrl+n in IE, the
new window is "aware" of the other instance.
You can't.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 5 '06 #2
Hi,

ct*******@gmail.com wrote:
Hi,

I'm not sure if this is possible, but I'm looking for a way to access
another IE browser window using JavaScript (assuming the two browser
windows are running in the same instance).

The purpose of this task is so that if a user hits ctrl+n in IE, the
new window is "aware" of the other instance.

Thanks in advance,
Tim.
If you simply hit Ctrl-N and do nothing else, the existing window won't
be aware of the newly opened window. However, if a Page gets loaded in
the new window, if this page knows the name of the existing window
(which name can be set by a script running in that existing window), and
if the newly opened window calls

var wExistingWindow = open( "", "existingWindowName", "" );

then the variable wExistingWindow will contain a reference to the
existing window. If both documents run in the same domain, you may even
call a method in the existing window:

wExistingWindow.notifyNewWindowOpen( self );

Not sure I would rely on so many "if"s.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Sep 5 '06 #3

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

Similar topics

5
5399
by: Adam Stirk | last post by:
Hi, I have a application that I need to create multiple new "iexplore.exe" processes (show more than once in taskmanger) and control them using the shdocvw/mshtml. I am able control Internet...
5
7825
by: Adam Stirk | last post by:
Hi, I have a application that I need to create multiple new "iexplore.exe" processes (show more than once in taskmanger) and control them using the shdocvw/mshtml. I am able control Internet...
6
2878
by: Sandy | last post by:
Hello - I have a little application that I would like to have an exit button on that closes my web application and closes Internet Explorer. What is the code that will do that? Any help...
2
3196
by: Brandon | last post by:
Running IIS 6, Classic ASP Browser: IE and/or Mozilla I have an application that allows users to store documents on my server. When they need to access/download the documents, my application...
0
7120
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7160
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
7196
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
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.