2010年8月9日 星期一

javascript detect popup blocker


var blocked = false;
try {
var wroxWin = window.open("http://www.wrox.com","_blank");
if(wroxWin == null){
blocked = true;
}
}catch(ex){
block = true;
}
if(blocked){
alert("The popup was blocked!");
}

沒有留言:

wibiya widget