print log in IE and Firefox


/ Published in: JavaScript
Save to your folder(s)

print log in IE and Firefox


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.