PDA

View Full Version : Java Script Drop Down Menu to new page


nightwhisper
06-04-2002, 05:08 PM
My name is Steve Cook
Help on a java script called "Dropdown menu" from:
A1Javascripts.com Form_navigation "Dropdown menu"

Example at
http://www.321cam.com/Links/WhitePapers.htm

If you click on any in the drop down menu, the current page changes.

I would like it to open up onto a new page instead of redirecting the current page.

I just don't know where to add the target="_blank" or the '_blank' to the Java to make it do it.

Steve Cook
E-mail scook@fairisaac.com and also E-mail scook@321cam.com

I would like it to open up on a new page instead or redirecting the current page.

cpradio
06-04-2002, 10:14 PM
Change:
window.location.href = urls[i];

To:
window.open(urls[i]);

nightwhisper
06-05-2002, 09:26 AM
Thank You, it worked and was so simple. Pretty sharp.
I have it on three different pages now...

http://www.321cam.com/Links/Default.htm
http://www.321cam.com/Links/PressReleases.htm
http://www.321cam.com/Links/WhitePapers.htm

cpradio
06-05-2002, 05:39 PM
Glad I could be of assistance.