By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

Detecting when my browser opens a new browser window

P: n/a
Hi all,
I need to find a way to run a piece of script whenever a new browser
window is created (either a new window spawned by pressing Ctrl+N, a
link that opens in a new window, a pop-up, etc.). One thing that might
help is that I only need to support this ability on IE6.0+ browsers.

I tried to achieve this by tapping into the NewWindow2 event, but with
no success so far. I am not sure this is the right way to go. My
alternative is to write a C++/VB code that taps into that events, but I
hope I can find a way to achieve this in JavaScript.

My warmest thanks!
Gil

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <11**********************@l41g2000cwc.googlegroups .com>,
gi**@npx.com enlightened us with...
Hi all,
I need to find a way to run a piece of script whenever a new browser
window is created (either a new window spawned by pressing Ctrl+N, a
link that opens in a new window, a pop-up, etc.).


AFAIK...

You can't do that with javascript (MSIE).

You need a COM add-on (VB, C#, etc) for IE.
You would write an extension in Firefox using javascript.

In both cases, it is something that the user has to install.

--
--
~kaeli~
"When dogma enters the brain, all intellectual activity
ceases" -- Robert Anton Wilson
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

P: n/a
Thats what I suspected. Thanks!

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.