Results 1 to 9 of 9

Thread: right click menu

  1. #1
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question right click menu

    I make a rightClick menu of this pagehttp://www.dynamicdrive.com/dynamici...ontextmenu.htm
    but when i go on links in my page i want this menu don't show and defult windows menu show

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Can you rephrase your question?

  3. #3
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    pleas help me

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Okay. So you installed the menu. What's your question?
    - Mike

  6. #6
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  7. #7
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i have some link in page and some link in right click menu that I make

  8. #8
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    do you UNDERSTAND my PURPOSE?

  9. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    ....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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •