Tutorial:JavaScript
From Metrixstream
Revision as of 13:29, 6 June 2012 by MetrixAdmin (Talk | contribs)
Logging
Logging is your friend. It isn't always supported, so you need to write your own wrapper around it. All logging will go to the console window which is located in the developer tools for most popular web browsers.
<script> function log(str) { if (window["console"] && window["console"]["log"]) window["console"]["log"](str); } </script>