Posted By

ywding on 09/12/12


Tagged


Versions (?)

print log in IE and Firefox


 / Published in: JavaScript
 

print log in IE and Firefox

  1. window.log = function() {
  2. log.history = log.history || [];
  3. log.history.push(arguments);
  4. if(this.console) {
  5. console.log(Array.prototype.slice.call(arguments));
  6. }
  7. };

Report this snippet  

You need to login to post a comment.