Looks good - but that first || needs to be && instead... :-)
_____ From: Joan Piedra Try this one :) http://pastemonkey.org/paste/471a49a0-fc54-4ca8-b8e7-5411404fdb0d (function($){ // block scope $.fn.log = function(msg){ if (window.console || console.firebug){ msg = msg || ''; if(msg !== '') msg += ': '; console.log("%s%o", msg, this); } return this; }; })(jQuery); On 10/19/07, Glen Lipka <[EMAIL PROTECTED]> wrote: I whipped up a demo using it. http://www.commadot.com/jquery/consoleLog.php <http://www.commadot.com/jquery/consoleLog.php> I probably (definitely) overused it. :) Glen