PopUp Block Detection
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi All, Greetings. I need to detect pop block status and have to display in my appilcation. I used the following code for it.
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("A popup blocker was detected."); } else { myTest.close(); alert("No popup blocker was detected."); } }
but its not working.it is working only for else part for both popup ON and OFF. Can any one of you tell me a solution to solve this issue. Thanks in Advance babu