[thelist] detect held-down mouse button

aardvark roselli at earthlink.net
Mon Aug 18 21:08:03 CDT 2003


while not definitive, this should get you started:
http://www.webreference.com/js/column9/newmouseevents.html

JavaScript 1.2 introduces several new mouse click events:
- mousedown
- mouseup
- dblclick
- mousemove

don't ask me about support, as i tend to not rely on JS this much...

found this info as the second link on a search on google:
http://google.com/search?q=mouse+events+in+javascript

i didn't bother clicking any more, i suspect you can scroll down the 
page and see what else applies...

> From: shortestpath <shortestpath at yahoo.com>
>
> is there a way to detect a held-down button, -while-
> the mouse is moving? Consider events in two cases:
> 1. mousedown, mousemove, mouseup
> 2. mousemove
> 
> I want to detect during a mousemove event, if a mousedown
> has occurred.

-- 
yet another book:
  The Web Professional's Handbook
  http://amazon.com/exec/obidos/ASIN/1904151221/evoltorg02-20
  ISBN: 1904151221





More information about the thelist mailing list