hich is the appropriate event handler to do something once a file has loaded? code example
Example: events in javascript
//this is an event detector for a mouseclick with Jquery
$('#id').on('click',function(){
yourFunction(args);
});
//this is an event detector for a mouseclick with Jquery
$('#id').on('click',function(){
yourFunction(args);
});