Skip to content

Instantly share code, notes, and snippets.

@NullDev
Last active December 14, 2017 08:35
Show Gist options
  • Save NullDev/b814d9336ed170ac3f5fe3b4c2351755 to your computer and use it in GitHub Desktop.
Save NullDev/b814d9336ed170ac3f5fe3b4c2351755 to your computer and use it in GitHub Desktop.
jsfiddle console.log to DOM

HTML:

<div id="t"></div>

JS:

var console={log:function(t){document.getElementById("t").innerHTML+=t+"<br>"}};

Example:

https://jsfiddle.net/L1e0jx2L/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment