Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OPen new window with javascript

Status
Not open for further replies.

mjcocat

IS-IT--Management
Oct 28, 2003
3
US
I am using a fly out menu, but am having trouble opening a new window with one of the links. Any help would be appreciated.

Sample code:

Menu6_3=new Array("Fax Cover Sheets","MyFile.htm","",7,20,120,"","","","","","",-1,-1,-1,"","");
Menu6_3_1=new Array("Chicago","MyFile.htm","",0,20,120,"","","","","","",-1,-1,-1,"","");
Menu6_3_2=new Array("Crown Point","MyFile.htm","",0,20,120,"","","","","","",-1,-1,-1,"","");
 
Too little info not enough script.

Do you have it on a test site so that we can
break it down.

And if you do specify which link exactly is broken.

2b||!2b
 
I have found an answer to my question:

Menu6_3=new Array("Fax Cover Sheets","MyFile.htm","",7,20,120,"","","","","","",-1,-1,-1,"","");
Menu6_3_1=new Array("Chicago","javascript:window.open('text_1.html');","",0,20,120,"","","","","","",-1,-1,-1,"","");
Menu6_3_2=new Array("Crown Point","MyFile.htm","",0,20,120,"","","","","","",-1,-1,-1,"","");

The above change will open the second link in a new window versus the current window. Hopefully this will help others with similar questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top