problems with popup blockers and opening 2 windows

A

amessimon

Hi

I have a issue where i need to open two popup windows at once.
I'm finding this works fine in firefox, IE, and most other browsers, but im
getting caught by popup blockers.
Paraphrased my code is basically .....

this.....

<a href="javascript:clickit();">click here</a>

calls this....

function clickit() {
newwindow2 = window.open("page.html");
newwindow1 = window.open("page2.html");
}

newwindow1 gets blocked

It seems to get blocked by the Yahoo popup blocker, probably others as well.
Does anybody know a way round this?

Thanks in advance

amesimon
 
V

VK

Popup blockers have been made to stop the poppers: no matter how badly they
would want to trash out users' screens.


try {
var w = window.open(myNastyPopUp);
}
catch (e) {
// at least IE on SP2 returns a security exception
// not sure about others though
window.alert('How did you dare to stop my pop-ups?! What\'s your number?');
}
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top