[thelist] js: onMouseDown() vs onClick()

Lindsay Evans lindsay at redsquare.com.au
Wed Feb 27 18:42:01 CST 2002


> i've not encountered a browser that will fire a mouseup or
> mousedown event,
> but not fire a corresponding click event.

If you hold the mouse button down on an element, move the mouse off the
element, then release the button, a mousedown event occurs, but an onclick
doesn't.

Also if you hold the button down outside an element, then move the mouse
over it and release the same happens with mouseup.

http://members.evolt.org/lindsay/mouseevents.html

--
 Lindsay Evans.
 Developer,
 Red Square Productions.

 [p] 8596.4000
 [f] 8596.4001
 [w] www.redsquare.com.au





More information about the thelist mailing list