javascript - How to check whetherpop up blocker is turned ON or not in a browser using Code ? -


how check whether pop blocker turned on or not in browser using java or java script code ?

function check () {     document.login.action= url+"test.jsp";     document.login.submit(); }    

i call function on click of submit button

how about:

var mywindow = window.open (url);  if (if (mywindow == null || typeof(mywindow )=='undefined')) {      // popup blocker enabled } else {      mywindow.close(); } 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -