View Full Version : right click menu
I make a rightClick menu of this pagehttp://www.dynamicdrive.com/dynamicindex1/contextmenu.htm
but when i go on links in my page i want this menu don't show and defult windows menu show
codeexploiter
02-13-2007, 09:38 AM
Can you rephrase your question?
dear
please be informed that I made a Right click menu by this current page
http://www.dynamicdrive.com/dynamici...ontextmenu.htm
for your futher notics , when I want right click on linkes on this page , I requested to hidden and enable this menu and also display the right click of windows menu's defult according
mburt
02-13-2007, 11:00 AM
Okay. So you installed the menu. What's your question?
I want
when mous over links(text or image) internet explorer's right click menu enable
and my right click menu disable
because I want select open in new window
i have some link in page and some link in right click menu that I make
do you UNDERSTAND my PURPOSE?
djr33
02-14-2007, 08:57 AM
....ok.
So you want to CHOOSE IF it should or should not be enabled?
So... sometimes it should do a menu, sometimes not?
After a search, here's what I got...
The functions usually available apply to the entire document, not elements. So you can't just specify elements.
Seems like you can use:
<element onmousedown="if(event.button==2){alert('right mouse button clicked!');}">
to decide what to do.
However, that might not work on the background.
but if you just want it on links, then that's possible.
However...
<a href="something.htm" target="_blank">
is the MUCH better solution for this. It forces a new window and will be supported with or without javascript AND doesn't annoy the user like no right click scripts do.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.