I follow this example to create a "fly to" effect.
In the example, you have to "click" a button to run the effect, i would like to run the effect when page is loaded.
I tried to "listen" the body tag with the "load" event, like this :
var flyTo = document.getElementsByTagName('body');
flyTo.addEventListener('load', function() {
It does not work.
How can I do this?