View Full Version : Need to implement right click to AnyLink Drop Down Menu

02-09-2005, 06:51 PM
Hi all,

Got a simple menu script that got displayed when the mouse hovers on links or clicks them. I got it from the following url.

http://www.dynamicdrive.com/dynamic...opmenuindex.htm (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm)

It works fine. What I want is to implement the same on right click that too cross browser. I fiddled a lot with onmousedown and event.button properties but ended up no where. I heard somewhere that we can use oncontextmenu but it doesnt seem to work on Mac/IE.

So what I need is, I want to check for event type and if it is right click then display the menu otherwise go to the default url of "href" property of the link.

If anybody knows how to implement cross browser right click capturing, Please do post it soon. I am stucked in middle of my project.

Thanking you in advance

02-10-2005, 09:42 AM
Very strange that there are only few programmers who are aware of cross browser event handling. I just need to disable right context menu and display different menus for different elements on the page.

Hope somebody will show me the way soon. I am really helpless and stucked in between my project.

Thanking in advance.