title: Adding event handler to an iframe using JQuery
body: <p>I want to assign a keydown event handler to an iframe. Something similar to the pure JS:</p>
  
  <pre><code>document.getElementById('iframe_id').contentWindow.addEventListener('keydown',funcName, true);
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>$(document.getElementById('iframe_id').contentWindow).keydown( function() {
     // my func
  });
  </code></pre>
  
  <p>But it does not work.. Please help!</p>