Cross Browser Javascript Debugger


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

Use to debug javascript in all browsers.


Copy this code and paste it in your HTML
  1. function log() {
  2.  
  3. try {
  4. console.log.apply( console, arguments );
  5. } catch(e) {
  6. try {
  7. opera.postError.apply( opera, arguments );
  8. } catch(e){
  9. alert( Array.prototype.join.call( arguments, " " ) );
  10. }
  11. }
  12. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.