Skip to content

Instantly share code, notes, and snippets.

@simon-lang
Created October 28, 2011 10:10
Show Gist options
  • Select an option

  • Save simon-lang/1322017 to your computer and use it in GitHub Desktop.

Select an option

Save simon-lang/1322017 to your computer and use it in GitHub Desktop.
console log for ie6? (untested)
$(function() {
if (typeof(console) === 'undefined') {
$('body').append('<div id="consoleLog" style="display: none;"></div>');
console = { log: function(msg){ $('#consoleLog').append(msg); } };
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment