Last active
August 29, 2015 14:16
-
-
Save ibare/5da074df03b737bc6add to your computer and use it in GitHub Desktop.
HTML 의 Body 에 로그를 남기기
This file contains 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
function show(msg, containerTag) { | |
var containerTag = containerTag || 'div'; | |
var bodyElement = document.getElementsByTagName('body')[0]; | |
var containerElement = document.createElement(containerTag); | |
var textNode = document.createTextNode(msg); | |
containerElement.appendChild(textNode); | |
bodyElement.appendChild(containerElement); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment