title: SSRS - Javascript Report load event
body: <p>I'm embedding a Report into an iframe (the report is fetched with .NET ReportingServices)</p>
  <p>I'd like to launch a Javascript function once the report is loaded.</p>
  <p>I tried:</p>
  <pre><code>window.addEventListener(&quot;load&quot;, ...)
  </code></pre>
  <p>But as the report result is loaded with Javascript, <code>window.load</code> is triggered before the report is effectively loaded.</p>
  <p>Are there some Javascript functions exposed that would allow me to handle the report load? Like:</p>
  <pre><code>the_report.loaded(function () {
    alert(document.height);
  });
  </code></pre>
  <p>By the way the aim is to get the final rendered document height.</p>