Posted By

elightbo on 03/05/08


javascript console log alert

Versions (?)

Browser friendly logging

 / Published in: JavaScript

  1. function log(message) {
  2. if (console) console.log(message)
  3. else if (window.console) window.console.log(message)
  4. else alert(message);
  5. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: elightbo on March 5, 2008

Assuming that you have firebug installed.

You need to login to post a comment.