right and double click events on images
On Sat, 16 Dec 2000 17:08:54 +0100, Martin Honnen
Quote:
> For IE do
> <IMG NAME="imageName" SRC="kiboInside.gif"
> ONDBLCLICK="alert(event.type); event.cancelBubble = true;"
> ONCONTEXTMENU="alert(event.type); event.cancelBubble = true; return
> false;"
Follow up:
The onDblClick stuff works just as in NN (in 'a href'): problems when
onMousedown, onMouseUp, and onClick is also used with a return of false or
when an alert is used in the event-handler .
Probable cause: if you think it through logically you find the sequence:
MouseDown, MouseUp, and Click, MouseDown, MouseUp and DoubleClick if it is
in a short time, otherwise Click. Then add in delays, things happening ...
The onContextMenu has severe problems: same as the above, but it also
seems to be impossible on my system to eliminate the normal context menu.
But it works on some others. Likely cause: my MSIE is too old. (v4SP1: aka
build 4.72.3110.8) With MSIE5 it works ok.
Now a funny thing: onMouseDown and onMouseUp work in (my) NN4 not only
using '<a ...>' but also directly in the '<img ...>' tag!
My NN is version 4.05nl Tomorrow I'll have access to a few other versions
of MSIE and NN -- I wonder what will work and what not ...
--
Greetings from
_____
/_|__| Auke Reitsma, Delft, The Netherlands.
/ | \ -------------------------------------
Remove SPAMBLOCK from my address ...