Last active
August 29, 2015 14:06
-
-
Save hc2p/a611639da5e83e969cf9 to your computer and use it in GitHub Desktop.
log to dom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var log = function(text) { | |
var el = document.createElement('p'); | |
el.innerHTML = text; | |
var body = document.getElementsByTagName('body')[0]; | |
body.appendChild(el); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment