A
Alexey
I have a situation where I need to respond to a link click by opening 2
windows and navigating to a URL in the parent window. Here's the
function I invoke:
function handleOfferLink(selfURL, instructionURL, offerURL)
{
window.open(selfURL, '_self').focus();
window.open(offerURL, '_blank').focus();
window.open(instructionURL, '_blank',
'width=435,height=390,top=0,left=0').focus();
return 0;
}
This code is invoked as a direct result of the user clicking a link
(href). On FireFox (FF) I get totally expected behavior: both windows
open and the parent window navigates to selfURL, however on Internet
Explorer (IE), something interesting happens: the first call to open a
new window succeeds, while the second is blocked. If I swap those 2
lines around, instructionURL opens, while offerURL does not. I've
tried taking out the dimension specs and everything else you could
think of it. It just looks like IE doesn't wanna allow more than 1
popup at a time, even if it's in response to a user action. I can't
seem to find a good guideline to IE's popup blocker. Any advice?
windows and navigating to a URL in the parent window. Here's the
function I invoke:
function handleOfferLink(selfURL, instructionURL, offerURL)
{
window.open(selfURL, '_self').focus();
window.open(offerURL, '_blank').focus();
window.open(instructionURL, '_blank',
'width=435,height=390,top=0,left=0').focus();
return 0;
}
This code is invoked as a direct result of the user clicking a link
(href). On FireFox (FF) I get totally expected behavior: both windows
open and the parent window navigates to selfURL, however on Internet
Explorer (IE), something interesting happens: the first call to open a
new window succeeds, while the second is blocked. If I swap those 2
lines around, instructionURL opens, while offerURL does not. I've
tried taking out the dimension specs and everything else you could
think of it. It just looks like IE doesn't wanna allow more than 1
popup at a time, even if it's in response to a user action. I can't
seem to find a good guideline to IE's popup blocker. Any advice?