I have a scenario where my popups are being blocked
by IE6+ and Firefox. The problem is that although the
popup is a direct result of the user clicking on the link
(meaning that they WANT the popup), when it comes
to opening it, I'm doing it via a JavaScript function and
by the time the popup is opened the browser doesn't
know it was as a result of that click. The link between
click and popup open attempt is broken. The reason
for this is that the click occurs in Flash, and to open
the popup it makes a call out to my JavaScript. The
solution of course is that the Flash itself opens the
popup and that works. We'd prefer it though if the
JavaScript function could open it because it has more
logic in it and does other stuff.
I've noticed a few sites that somehow managed to
get around this problem though. When I looked at
the code they're using to open the popup it just looks
completely standard, like this:
var pop=window.open(url,name,options);
if(pop)pop.focus();
Here's a site that's managing to launch a popup that
isn't from a click:
http://www.peekvid.com/tv.html
In IE6 (with SP2) I see the popup warning bar at the
top of the client area ("popup blocked"), but despite
that, the popup opens anyway (or a second one
manages to open). In Firefox it seems like it gets
blocked, but when you close the browser, the
unload event manages to spawn a popup anyway.
I looked at their code and saw only the code above
along with a lot of obfuscated code that is very hard
to figure out.