jQuery equivalent of body onLoad
$(window).load(myfunc)
is what you're looking for. If you're working with the load event of an iframe, you can replace window
with the iframe element/selector.
This works as well:
$(window).load(function(){
// ..
myfunc();
// ..
});