title: How to run an animation onload event
body: <p>I follow <a href="http://openlayers.org/en/latest/examples/animation.html" rel="nofollow">this example</a> to create a "fly to" effect.</p>
  
  <p>In the example, you have to "click" a button to run the effect, i would like to run the effect when page is loaded.</p>
  
  <p>I tried to "listen" the body tag with the "load" event, like this :</p>
  
  <pre><code>var flyTo = document.getElementsByTagName('body');
  flyTo.addEventListener('load', function() {
  </code></pre>
  
  <p>It does not work.</p>
  
  <p>How can I do this?</p>