Best practice for using window.onload
window.onload = function(){}; works, but as you might have noticed, it allows you to specify only 1 listener. I’d say the better/newer way of doing this would be to use a framework, or to just to use a simple implementation of the native addEventListener and attachEvent (for IE) methods, which allows you to remove the … Read more