title: Reload iFrame Success Function
body: <p>I am trying to reload my iframe then scroll back to the position it was previously in before reloading.</p>
  
  <pre><code>var iframe_x=$('#the-frame').attr("xpos");
          var iframe_y=$('#the-frame').attr("ypos");
          $('#the-frame').attr("src", $('#the-frame').attr("src"));
          document.getElementById('the-frame').contentWindow.scrollTo(iframe_x,iframe_y);
  </code></pre>
  
  <p>The problem is that we need to wait for the iFrame to finish loading before scrolling. Is there a 'success' function for attr?</p>
  
  <p><strong>How can I accomplish this?</strong></p>