title: How to capture onclick within an iFrame for embedded YouTube video?
body: <p>I have an iFrame that displays an embedded youtube video. </p>
  
  <pre><code>&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/xxx" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>What I would like to do is somehow capture the click event when the user clicks the you tube video so that I can call an <a href="http://myserver.com/dostuff" rel="noreferrer">http://myserver.com/dostuff</a> rest api to update an external server counter tracking the number of clicks and of course allow the video to play as expected.  </p>
  
  <p>Any information would be greatly appreciated.</p>