Created
January 23, 2013 15:37
-
-
Save idac73/4608273 to your computer and use it in GitHub Desktop.
Simple cross-browser console output javascript
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
if(window.navigator.appName == "Microsoft Internet Explorer") { | |
window.console.log("MSIE console output"); | |
} else { | |
console.log("WebKit and Gecko console output"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment