HTML: <div id="t"></div> JS: var console={log:function(t){document.getElementById("t").innerHTML+=t+"<br>"}}; Example: https://jsfiddle.net/L1e0jx2L/