title: Bypass popup blocker on window.open when JQuery event.preventDefault() is set
body: <p>I want to show a JQuery dialog conditionally on click event of an hyperlink .</p>
  
  <p>I have a requirement like on condition1 open a JQuery dialogue and if condition1 is not satisfied, navigate to the page as referenced by 'href' tag of  whose click event is in question.</p>
  
  <p>I am able to call a function on link's click event. This function now checks the said condition by executing another URL (that executes my Spring controller and returns response).</p>
  
  <p>All works perfect with only window.open being blocked by popup blocker.</p>
  
  <pre><code>$('a[href*=/viewpage?number]').live('click', function(e) {
      e.preventDefault();
      redirectionURL = this.href;
      pageId= getUrlVars(redirectionURL)["number"];
      $.getJSON("redirect/" + pageId, {}, function(status) {
          if (status == null) {
              alert("Error in verifying the status.");
          } else if(!status) {
              $("#agreement").dialog("open");
          } else {
              window.open(redirectionURL);
          }
      });
  });
  </code></pre>
  
  <p>If I remove <code>e.preventDefault();</code> from code, popoup blocker doesn't block the page, however for condition1 it then opens the dialogue as well as opens the 'href' page.</p>
  
  <p>If I solve one, it creates issue for another. I am not able to give justice to both conditions simultaneously.</p>
  
  <p>Could you help me solve this issue please?</p>
  
  <p>Once this is solved I have another issue to solve i.e. navigation on dialogue's OK event :)</p>