|
-
June 7th, 2002, 09:46 AM
#1
return false
I have oncontextmenu="return false;" and oncontextmenu="javascript:return false;" as attributes (it's a <TH> tag, incidentally, but I don't suppose it matters), and the resultant behaviour is satisfactory. However, when I have oncontextmenu="javascript oThing();" along with
function doThing(){
return false;
}
I still get the context menu popping up.
Why is this, and how can I prevent it?
thanks,
S. Monkey (Mr)
-
June 8th, 2002, 04:38 AM
#2
-
June 10th, 2002, 04:11 AM
#3
context menu
try this
oncontextmenu="javascript oThing();return false;"
on right click first call is to your function and the return false is for window's own context menu.
hope it works.. :-)
Anupam.
-
June 10th, 2002, 04:13 AM
#4
Hooray.
Thankyou, Zvona.
Good point, well made, works for me. My script is no longer Fubar'd.
Cheers muchly,
Surrendermonkey.
Last edited by Surrendermonkey; June 10th, 2002 at 04:15 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|