vpfjsphp:preventing_default_events
document.querySelector(".selecteur").addEventListener("contextmenu", function(e) { e.preventDefault(); (...) e.target.addEventListener('mousemove', function(f) { mon_element.style.left = f.offsetX + 15 + 'px'; } }, false);
vpfjsphp/preventing_default_events.txt · Last modified: 2016/03/06 13:45 by leo