Generic Handler (Event logging in Console)


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

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


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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.