title: open new tab only after click popup ok jquery
body: <p>How to create a script for open a tag href url in new window or tab only after clicking ok button in popup. there are multiple a tags with different urls.  </p>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
  
    $("[target=_blank]").click(function() {
      $(".popup").toggle();
    });
    $(".cancel").click(function() {
      $(".popup").hide();
    });
  });
  </code></pre>
  
  
  
  <p><a href="http://jsfiddle.net/xdfoydy8/4/" rel="nofollow">http://jsfiddle.net/xdfoydy8/4/</a></p>