WyldGynjer
MIS
is there a way to detect if a person has a pop-up blocker on - like there is a way to detect if they have cookies enabled - navigator.cookieEnabled ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var w = window.open();
if (!w) alert('popups need to be enabled');
var w = window.open();
if (!w) alert('popups need to be enabled');
else w.close();
var w = window.open();
if (!w) {
document.write('popups need to be enabled');
} else {
document.write('popups enabled');
if (!w.closed) w.close();
}
tsdragon said:The only problem with that method is that some popup blockers will return something when you try to open a popup even though no window actually opens!
I can't recall the exact circumstances, but I ran into that problem months ago and had a very difficult time working around it.