I am trying to connect the onMouseDown event to an image using dojo.connect , for example:
dojo.connect(dojo.byId("workpic"), "onMouseDown", workpicDown); function workpicDown() { alert("mousedown"); }
Similar code a few lines later, when I connect onMouse* events to dojo.body , it works completely correctly.
but when I click on the image, I do not see a warning window, so the event is not raised. Why is this?
source share