/    Sign up×
Community /Pin to ProfileBookmark

Right-click menu issues

I recently looked at a script referenced on this site: [URL=”http://javascript.internet.com/page-details/right-click-menu.html”]http://javascript.internet.com/page-details/right-click-menu.html[/URL] for creating a custom right-click menu.

I’ve built up a folder structure on a page. I’m trying to get the right-click to work per folder. I modified the script referenced above by removing the document.onContextMenu = showmenuie5 and setting the onContextMenu attribute = showmenuie5 on my <li> tag that contains the folder. I was able to get the right-click to bring up my own custom menu when clicking on a folder. However, it still brings up IE’s standard right-click menu as well, and sometimes its actually on top of my menu. Is there a way in the script to disable the IE right-click menu so when I right click one of my folders the only menu that shows up is my custom menu?

Thanks for any help you can give.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoJan 10.2007 — Also, IE is one of the few browsers that allow you to have a custom context menu. Most other browsers don't.
Copy linkTweet thisAlerts:
@felgallJan 11.2007 — Some browsers don't even allow you to turn off the existing context menu.
×

Success!

Help @OmegaDev spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...