<script> down = 0; onmousedown = function(){down = 1;} onmousemove = function(){if(down){alert(true); down = 0;}} </script>