Posted By

dejot on 10/26/12


Tagged

javascript event console click log consolelog


Versions (?)

Generic Handler (Event logging in Console)


 / Published in: JavaScript
 

generischer Handler für die Eventausgabe in der Konsole....

  1. var generic_handler = function(event){
  2. console.log(event);
  3. }
  4.  
  5. $('.trigger')
  6. .click(generic_handler).mouseover(generic_handler).mouseout(generic_handler);
  7. $('*').click(function(){
  8. console.log($(this));
  9. });

Report this snippet  

You need to login to post a comment.