What's wrong with Firebug? I fail to find a better alternative for JS debugging.
This isn't a huge problem or reason not to use Firebug (which I would be totally lost without), just something to be wary of.
if(!console)console={log:function(){}};
You're welcome. if (!window.console)
Or if (typeof console == 'undefined')
Or if !('console' in window))
N var console2 = {
log: function(msg){
if(typeof console != 'undefined'){
console.log(msg);
}
}
}there, fixed..