Click to See Complete Forum and Search --> : Popup blockers
bisqui
02-07-2003, 08:07 PM
I've seen a similar thread, but it was not very specific so I figured I'd start my own. I'm looking for a way to open a site from a splash page(to have complete control over the window features) that won't be blocked by a popup blocker. Is there a one-size-fits-all solution to this? Is there a way to detect if a user is running a popup blocker and display an alert if they are? I know that some blockers only block unrequested popups, but there are others that won't let you open a window from a link. I don't really understand this mentality. Seems contradictory to the logic of having a blocker... not wanting anybody/anything but yourself dictating what you can or can't view.
Vladdy
02-07-2003, 09:38 PM
Learn to design within browser window.
bisqui
02-07-2003, 09:49 PM
Ok Vladdy, you might as well not reply if it's just going to be a useless, snide remark. The things I'm doing in this site require complete control over the window. It does not lend itself to "designing in the window". Perhaps you are satisfied with the limitations of an uncontroleld window, but I'm not, at least not in this particular case.
Your signature says it all.
bisqui
02-07-2003, 09:55 PM
Thanks for the info dave. I think you misunderstood what I was saying about ownership though. What I was saying is that the popup blockers that won't allow a user to open a window from a link seem like they are dictating to the user what they can and can't see. I thought the point of a popup blocker was to prevent someplace from telling you what you SHOULD see. You get a blocker to prevent somebody from forcing something on you, but then the blocker winds up forcing something else. I just think it's ironic. Of course, there are soem blockers that don't block popups from links, or that let you configure it however you want. I'm just talking about the crappy ones that don't. Basically, I'm just ranting :)
bisqui
02-07-2003, 10:16 PM
well, assuming the user knows what they are installing as opposed to just grabbing the first free thing listed on google. The comment was really just a passing remark. Just thought it was ironic, that's all.
bisqui
02-07-2003, 10:34 PM
Well, I'm playing with it right now. I don't really like the idea of setting a timer to test if the window opened. This could easily give false positives over a slow connection. I'm trying to get it to work by setting the window.open to a variable and then testing for null. Not sure if the variable gets set until after the window is entirely loaded though... in which case, that's kinda useless. Any other ideas?
bisqui
02-07-2003, 10:42 PM
actually, setting the window variable works perfectly. I had a typo that was causing it to not work, but once I fixed that, it's all set. something like this:
var mainWin = null;
mainWin = window.open(...);
if (!mainWin) alert("stuff");