Pop-up Blocker
-
How to detect: is pop-up blocker on? For example I want to open a new window, but if pop-up blocker has blocked it, then I want to open it in the same window, or say the user to turn off pop-up blocker? is it possible?
Hi! It is very simple to detect popup blocer. Examine my code below please. function detectPopupBlocker() { var myTest = window.open("about:blank","","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no"); if (!myTest) { alert("Please allow pop ups for this web site!"); } else { myTest.close(); return; } }
-
Hi! It is very simple to detect popup blocer. Examine my code below please. function detectPopupBlocker() { var myTest = window.open("about:blank","","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no"); if (!myTest) { alert("Please allow pop ups for this web site!"); } else { myTest.close(); return; } }