[thelist] Javascript: cancel selection in Opera 5 & 6

Jonas Bohlin jonas at halogen.com
Sun May 5 15:49:01 CDT 2002

Hi all...
I'm working on updating my old dynamic scroll, and I've run into two
problems with opera 5 and 6.

How do I cancel the selection in opera 5 & 6? I've tried just about
everything, including but not limited to onselectstart,
event.stopPropagation(), event.preventDefault() and simply returning false
on mousedown and mousemove. Pretty much all the techniques used with ie,
netscape and mozilla to accomplish this, and none of them seem to do the

In opera 6, I seem to be unable to capture the onmouseup-event of a layer if
the event occurs outside the layer (mousedown occured inside the layer and
was captured as it should).
this could be fixed by cathing the event on document.onmouseup, but that
doesn't fire either; probably because the event "should" be captured by the
layers own event handler... (This one smells like a bug.)



More information about the thelist mailing list