Detecting when my browser opens a new browser window

M

Mortisus

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
 
K

kaeli

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top