Created
May 14, 2011 00:59
-
-
Save dmpayton/971560 to your computer and use it in GitHub Desktop.
console.log
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>console test.</title> | |
<script type="text/javascript"> | |
// Fake out console.log so that certain browsers don't trip out. | |
function fauxConsole() { return {log: function(){ return }} } | |
var console = console || fauxConsole(); | |
// Now you can use console.log without throwing errors. | |
console.log('hello, world'); | |
</script> | |
</head> | |
<body> | |
<p>console test.</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment