python
11-28-2003, 04:01 PM
hello, I am trying to catch the onmouseup event on an image.
I am also catching the onmousemove event. Whenever the user releases the mouse button WHILW moving the mouse, the onmouseup event is NOT triggered.
here is some code:
<script language="javascript">
function mouseup() {
alert("mouse up");
}
function mousemove() {
window.status = "moving...";
}
</script>
<body>
<img onmouseup ="mouseup()" onmousemove="mousemove()" />
</body>
the "mouse up" alert will not show. What am I doing wrong?
I am also catching the onmousemove event. Whenever the user releases the mouse button WHILW moving the mouse, the onmouseup event is NOT triggered.
here is some code:
<script language="javascript">
function mouseup() {
alert("mouse up");
}
function mousemove() {
window.status = "moving...";
}
</script>
<body>
<img onmouseup ="mouseup()" onmousemove="mousemove()" />
</body>
the "mouse up" alert will not show. What am I doing wrong?