codice:
var win = "";
win = window.open(...);
if(win == "") alert("il tuo browser non permette l'apertura di finestre");