multi-browser debug function


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



Copy this code and paste it in your HTML
  1. function debug() {
  2. if( window.opera ) {
  3. opera.postError.apply( opera, arguments );
  4. } else if( window.console ) {
  5. console.log.apply( console, arguments );
  6. }
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.