I have this code to trigger a alert if some one blocks pop ups from my site:
var w = window.open( "url","_blank", "height = 200, width = 300, top=450, left=1025" );
if(w == null || typeof(w) == "undefined" || w.location.href == 'about:blank') {
alert("Please enabled popups for this site to continue.");
}
Problem is that the alert shows if i block or allow pop ups. Why does it keep getting triggered?
Many thanks