Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Open New Tab Option in Custom Context Menu

    I am trying to make a custom context menu so that when a user right clicks it replaces the original right click menu. I can get that bit working but I don't want to do away completly with all the browser features. In particular I want to include a "open in new tab" option in my new menu so that users may open links in a new tab, however I cannot seem to find any information on google on how to do this.

    I need it to be cross browser compatible at least IE/FF friendly. Does anyone know how to do this or have a link to a tutorial?

    Also is it possible to completly replicate the original menu, but use a custom context menu to change the look/design of it with css?

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • #3
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thx but those links just show me how to make a custom context menu I already know how to do that. I want to know though how to add a "open in new tab" option for my custom context menu

  • #4
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Which one are you using?

    Could you not implement it so it acts the same was as you do:
    Code:
    <a href="http://www.google.com" target="_blank">Open Google in new window</a>
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph


  •  

    Tags for this Thread

    Posting Permissions

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