Results 1 to 2 of 2

Thread: Need to implement right click to AnyLink Drop Down Menu

  1. #1
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need to implement right click to AnyLink Drop Down Menu

    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

    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
    Afru.

  2. #2
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.
    Afru.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •