Your browser is very old. You might enjoy surfing the web more if you used something newer like:

Google Chrome

Even Firefox would be OK.

If you're being forced at gunpoint to use Internet Explorer, you should at least upgrade it. Version 8 is tolerable and 9 will be OK when it comes out.

Posts categorized “Uncategorized”

Even better overriding the Firebug console in IE

I wrote, a while back, about Overriding the Firebug console object to prevent IE from throwing errors when you console.log all over your code.

The only problem that first version is that it’s too much to type. Here’s a much shorter way of doing it using object literal notation.

if(typeof console=='undefined'){console={log:function(){}};}

It’d be easy to enough add a handler for the console.debug function and to have those functions actually do something in IE (of course you could also just use Firebug Lite) but I find the snippet above is good enough for most cases.