Prevent Windows from using my window

A

AJS

I open a small window with no toolbars and position it in the corner
of the screen.

My problem is that when this window was the last window opened,
Windows will use it to open any link that I click on.

Here is how I test this,
1. I click a link on my html page to open my little window.
2. I click on a link in an email message.
3. The link will open in my little window instead of a new window.

is there any way to prevent this?
Thanks
AJS
 
M

Matt Kruse

AJS said:
3. The link will open in my little window instead of a new window.
is there any way to prevent this?

This isn't javascript-related, but if you are using IE then under
Tools->Internet Options->Advanced there is an option for "Reuse windows for
launching shortcuts".

Uncheck that and see if it gives you the behaviour you want.

If you are using a different browser, then I don't know :)
 
E

Evertjan.

Matt Kruse wrote on 16 jun 2004 in comp.lang.javascript:
This isn't javascript-related, but if you are using IE then under
Tools->Internet Options->Advanced there is an option for "Reuse
windows for launching shortcuts".

Uncheck that and see if it gives you the behaviour you want.

If you are using a different browser, then I don't know :)

If you do not want to reuse the main window:

<base target="_blank">
 
M

Matt Kruse

Evertjan. said:
If you do not want to reuse the main window:
<base target="_blank">

That won't work when opening windows from other applications, like email,
because obviously the links in the email don't have a "target" attribute.
 
M

Markus Ernst

Matt Kruse said:
That won't work when opening windows from other applications, like email,
because obviously the links in the email don't have a "target" attribute.

Is your task to solve that problem for your own machine? Then the easiest
way is just to open a blank window before you click a link in your mail or
news application.

If OTOH you want to solve it for your application, then I don't think there
is another possibility than closing the small window as soon as it looses
focus (<body onBlur="self.close()">). I am not even sure if the onBlur event
works if another application gets focus (and not another browser window).

HTH
Markus
 

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
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top