Posted By

gfazioli on 09/14/09


Tagged

event jquery stopPropagation preventDefault


Versions (?)

Stop Event Propagations


 / Published in: jQuery
 

URL: http://www.undolog.com/2009/08/21/impedire-la-propagazione-degli-eventi-con-jquery/

see http://www.undolog.com/2009/08/21/impedire-la-propagazione-degli-eventi-con-jquery/ for detail

  1. $('a#mylink').click(
  2. function(event) {
  3. document.location = event.target.href;
  4. event.stopPropagation();
  5. event.preventDefault();
  6. }
  7. );

Report this snippet  

You need to login to post a comment.