Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-01-2008, 06:37 AM   PM User | #1
Petty_Crim
New to the CF scene

 
Join Date: Oct 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Petty_Crim is an unknown quantity at this point
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?
Petty_Crim is offline   Reply With Quote
Old 10-01-2008, 07:12 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
http://deluxe-menu.com/popup-mode-sample.html
http://www.milonic.com/menusample27.php
http://www.javascriptkit.com/script/...lickmenu.shtml
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Old 10-01-2008, 07:27 AM   PM User | #3
Petty_Crim
New to the CF scene

 
Join Date: Oct 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Petty_Crim is an unknown quantity at this point
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
Petty_Crim is offline   Reply With Quote
Old 10-01-2008, 07:34 AM   PM User | #4
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
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
rangana is offline   Reply With Quote
Reply

Bookmarks

Tags
context menu, open new tab

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:54 AM.


Advertisement
Log in to turn off these ads.