JavaScript to check if the popup blocker is active

0

I need to make a JavaScript for an application that checks if the popup blocker is active. I have the following code:

$(window).ready(function(){
  var Janela = window.open('', '', '');
  if(Janela==null){
      alert('Não Abriu!!!');
  }
});

However, I wanted something that would not open a tab to do this check, because every time you trigger this method, if you have released the popup, it will open a new user tab.

    
asked by anonymous 15.05.2017 / 21:23

0 answers