object.addEventListener("load", myScript);
object.onload = function(){myScript};
<element onload="myScript">