title: Focus in an iframe in Firefox
body: <p>I shall open a dialog which contains an iframe, then set the focus inside the iframe once the dialog is opened.</p>
  
  <p>Currently, I try to get the focus on the iframe when the content is loaded:</p>
  
  <pre><code>&lt;iframe src="../credits.html" onload="this.contentWindow.focus()"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>It works fine for all browsers except for Firefox, and I don't understand why.</p>
  
  <p>Can someone tell me why?
  Thanks</p>