How do I attach a body onload event with JS in a cross browser way? As simple as this?
document.body.onload = function(){ alert("LOADED!"); }
Why not use window's own onload event ?
window
onload
window.onload = function () { alert("LOADED!"); }
If I'm not mistaken, that is compatible across all browsers.