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.
function checkPopups() {
// Pop up a small test window, see if it exists, then close it
wTest = window.open('./testPopup.html','testWin','width=20,height=20,resizeable=no,scrollbars=no');
// IE 6.0 dies on "instanceof Window" and Mozilla will
// return an object even if popups are disabled, so
// check that an object is returned AND that it has
// several common properties of a window.
// This still doesn't work in Navigator 4.x - too bad.
if ( wTest == null ||
wTest.frames == null ||
wTest.document == null ||
wTest.opener == null ||
wTest.screen == null ||
wTest.history == null ||
wTest.navigator == null ) {
return false;
}
wTest.close();
return true;
}
var winHandle = window.open('[URL unfurl="true"]http://www.google.co.uk/',[/URL] '', '');
if (winHandle == null) alert('Popup was blocked');