tnxaLOT!
Now I know more about the behavior of the event and am able to build a
solution to my problem....
Greetz,
Morriz
iD!OTZ:
- ppl with different opninions and/or behavior
-----Original Message-----
From: Boloian, John [mailto:jboloian@u...]
Sent: woensdag 20 februari 2002 18:24
To: javascript
Subject: [javascript] Re: on right mouse key click get object undernea
th?
Not sure if you copied and pasted from your editor, but onContextmenu
was spelled incorrectly in your post.
Try this:
<a href="#" id="test" onContextmenu="MyFunc();return false">test</a>
<a href="test.html" id="test" onContextmenu="MyFunc();return
false">test</a>
<img source="test.gif" id="test" onContextmenu="MyFunc();return false">
(the "return false" after the function call will prevent the standard
context menu from showing up)
-----Original Message-----
From: Morriz [mailto:mrdata@i...]
Sent: Wednesday, February 20, 2002 12:14 PM
To: javascript
Subject: [javascript] Re: on right mouse key click get object undernea
th?
Shame, it only seems to work in a div tag, and on text...it says 'object
expected' in these cases:
<a href="#" id="test" onContectmenu="MyFunc();">test</a>
<div id="test" onContectmenu="MyFunc();"><a
href="test.html">test</a></div>
<div id="test" onContectmenu="MyFunc();"><img source="test.gif"></div>
Am I limiting myself here?
...
$subst('Email.Unsub').