title: Web Intent Callback Events via Window.open Just Not Happening
body: <p>Wonder if anyone can help. See attached code below:</p>
  
  <ul>
  <li><p>If I launch a Web Intent via a normal "a href", and then tweet I get the callback. Lovely.</p></li>
  <li><p>If, however, I launch a Web Intent via a window.open, say from a button click, I don't. See code below.</p></li>
  <li><p>I <em>could</em>, trap the button click, and then call click on the "a href". At this point, I <em>do</em> then get the callback. However, this action in some browsers (e.g. Safari) gets caught in the pop-up blocker, so no-one sees the popup. Which is a bit useless.</p></li>
  </ul>
  
  <p>I would like to use the window.open approach, and get the callback. Any thoughts anyone?</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head lang=en&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;Web Intent t3 Experiment&lt;/title&gt;
      &lt;script src="http://d3js.org/d3.v3.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://platform.twitter.com/widgets.js" type="text/javascript"&gt;    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;a href="https://twitter.com/intent/tweet?url=http://www.google.com&amp;text=testing web intents"&gt;Option 1: Tweet via Link&lt;/a&gt;&lt;br /&gt;
  &lt;button id="tf_sendtweet_button"&gt;Option 2: Tweet Via Button and JS&lt;/button&gt;
  
  &lt;script type="text/javascript"&gt;
  var t_element = d3.select("#tf_sendtweet_button");
  t_element.on("click", function() {
          _text = "Some compelling text to go in a tweet";
          _url = "http://www.google.com/";
  
          var tweet_url = 'https://twitter.com/intent/tweet?text=';
          tweet_url += encodeURIComponent(_text);
          tweet_url += '&amp;url=' + encodeURIComponent(_url);
          window.open(tweet_url,'_blank');
  });
  
  
  
  // Here, trap the callback from the WebIntent.
  twttr.ready(function (twttr) {
      // bind events here
      twttr.events.bind('tweet', function (event) {
          alert("Yay, tweet callback baby. Gotcha.");
          console.log(new Date(), "Sweett, tweet callback: ", event);
      });
  }); 
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>