title: Event on PDF Iframe is loaded - Javascript
body: <p>Is there any easiest method to call a function right after a <code>&lt;iframe&gt;</code>, <code>&lt;object&gt;</code> or <code>&lt;embed&gt;</code> is loaded? i just want to show a <code>preloader.gif</code> on content load. <code>ready()</code> or <code>onload()</code> didn't help. any suggestion?</p>
  
  <pre><code>&lt;iframe src="&lt;?php echo $file; ?&gt;" id="read" width="100%" height="440" border="0"&gt;&lt;/iframe&gt;
  
  $('#read').ready(function () {
      $('#preloader').css('display', 'none');
  });
  </code></pre>