jsp - How to prevent execution of onmousedown and onmouseup of div using javascript? -


i have div.

<div id="down"  onmousedown="mousedown('url(/scantouserbox/img/cpt_subfunc_005_next_d.png)', this)"  onmouseup="mouseup('url(/scantouserbox/img/cpt_subfunc_005_next_i.png)', this)"  onclick="changepage('down')"> </div> 

i want prevent execution of events in instances. tried disabling div still events executed.

why can't use jquery , attach events based on actions? restricted javascript? javascript example:

document.getelementbyid('down').addeventlistener('mousemove', elementmove, false);


Comments