User Tools

Site Tools


vpfjsphp:stopping_event_propagation

Méthode normale

stopPropagation()

mon_element.addEventListener('click',function(e) {
  console.log("clic sur mon_element.");
  e.stopPropagation();
}, false);

<IE8

on assigne la valeur true à la propriété cancelbubble

cancelbubble = true;
vpfjsphp/stopping_event_propagation.txt · Last modified: 2016/03/06 11:47 by leo