PDA

View Full Version : detect pop-up blocker, then redirect?


celebritymusic
08-20-2004, 10:09 PM
Hi

My site works as a pop-up.

I need to know if there is any code that can detect if the user has a pop-up ad blocker installed, and if so redirect them to a version of my site that isn't a pop-up.

This code only needs to work in IE

Thanks!

Midge

Gamini
08-21-2004, 01:11 AM
It would be impossible for a script to detect whether a person has a ceertain application running.

Josh
08-21-2004, 10:47 AM
You would have to check for the google toolbar on IE, which i don't even think is possible.

any mozilla users have popup blockers enabled by default.

It would be pointless to try./

n8thegreat
08-21-2004, 10:59 AM
you cant detect if they have an application installed, but you can check if the window pops up :)
you just have to do something like this

function openWin() {
var win = window.open(...);
if (!win) {
window.location = "http://whatever";
}
}


i only tested it in moz and ie, and it works in both

Gamini
08-21-2004, 11:04 AM
Hey, I was wondering about that n8thegreat just didnt think it was possible to detect if the window is open or not.