We help IT Professionals succeed at work.
Get Started

Javascript - Window.open in a tab

DancingFighterG
on
439 Views
Last Modified: 2014-06-01
Hello,

I'm trying to a change to an old website that uses javascript to open up pages in pop-up boxes and change the functionality to op up the page on a new tab. Overall, I'm planning to move this entire website to a CMS system such as WP or Joomla but for now I'm going to fix this issue. Here is an example of the code that is being used to allow this to function with pop-ups:

Menu2=new Array("For the Employee","","",4,23,162);
	Menu2_1=new Array("Corporate HR","javascript:window.open('/hdintranet/divisionsites/corporate/redirectCorpHR.html','','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=630,top=30,left=160,position=40')","",0,20,185);
	Menu2_2=new Array("Plastics & Die Casting Center HR","javascript:window.open('/hdintranet/divisionsites/manufacturing/owensboro/index.html','','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=630,top=30,left=160,position=40')","",0,20,185);
	Menu2_3=new Array("Window Fashions Division","javascript:window.open('/hdintranet/divisionsites/manufacturing/wfd/index.html','','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=630,top=30,left=160,position=40')","",0,20,185);
	Menu2_4=new Array("Information Center","","",3,20,150);
			Menu2_4_1 = new Array("Cell Phone Discounts","/hdintranet/foremployees/informationcenter/phonediscount.html","",0,20,150);
			Menu2_4_2 = new Array("Do Not Call Registry","/hdintranet/foremployees/informationcenter/phonedonotcall.html","",0,20,150);
			Menu2_4_3 = new Array("Hertz Rent2buy Discount","/hdintranet/foremployees/informationcenter/hertzdiscount.html","",0,20,150);

Open in new window

Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE