|  |  | 
      Return to Recent Questions Is it possible for a javascript navigation bar item to have an associated "target"? 
 
 Q:
 Is it possible for a javascript navigation barr item to have an associated "target"?
 
 What I mean is I'd like to be able to open the page in a new window, so I'd
 need to specify the href as well as "target=_new" (in HTML anyway).
 
 A:
 
 You can set target parameter for all items:
 var itemTarget="_blank";
 
 Where main - is the name of the  main middle frame where you want to open the link.
 
 or for each item individually:
 ["Home","testlink.html", "", "", "", "_blank", "", "", "", "", "", ],
 
 
 
 
 
 
 Return to Recent Questions
 
 Related:
 
 
         Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
Sep 30, 2006 - The frame below the javascript menubar is moved to the bottom of the page.
Oct 19, 2006 - I want a javascript toolbar with all the buttons the same length.
Nov 06, 2006 - Each item is a different width. Can I do this with your html navigation bar?...
Nov 23, 2006 - Can we right justify  the secondary javascript navbar?
Dec 04, 2006 - When running navigation bar code with IE or Firefox, the background is  transparent.
Dec 28, 2006 - Is it possible to change from a default target in javascript horizontal menu?
Dec 31, 2006 - Is there a way to use the javascript floating bar without generating the warning?
March 20, 2007 - Do you supports key navigation, like alt-F to select a javascript animated menu?
April 13, 2007 - How to call javascript function when the user click on a  menu bar html Items
April 15, 2007 - I cannot change the background javascript hide menubar color
 |