Skip to content

Instantly share code, notes, and snippets.

@chanian
Created November 10, 2011 00:43
Show Gist options
  • Save chanian/1353707 to your computer and use it in GitHub Desktop.
Save chanian/1353707 to your computer and use it in GitHub Desktop.
make IE<=7 slightly less painful
(function () {
if(!window.console) {
console = {
log: function() {
var str = "";
for(var i = 0; i < arguments.length; i++) {
str += arguments[i];
}
document.body.appendChild(document.createTextNode(str));
document.body.appendChild(document.createElement('br'));
}
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment