Edit in JSFiddle

window.addEventListener("load", function(){
    document.querySelector("body").innerHTML = "HTML Loaded";
}, false);