title: jQuery click on iframe video (youtube)
body: <p>I have an html iframe that contains just an embeded youtube video. I'm trying to perform an action when the user clicks the video/iframe but does not work. Here is code:</p>
  
  <p>html:</p>
  
  <pre><code>&lt;iframe id="myVideo" autoplay="true" src="https://www.youtube.com/embed/pyvGEnmv1E0"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$(function(){
    //line in question:
    $('#myVideo').contents().find("body").click(function(){
      //perform action here
    });
  });
  </code></pre>
  
  <p>On the "line in question" above, I have also tried the more simple-</p>
  
  <pre><code>$('#myVideo').click(function(){});
  </code></pre>
  
  <p>but that fails also.  Any help is wonderfully appreciated.</p>
  
  <p>Andrew</p>