Click to See Complete Forum and Search --> : Simple question -links in new window


tconey
03-24-2003, 06:04 PM
Hi, I'll try again.

The script is a multi-level drop down menu. More than one link.

What can I add to the script to tell the all the links to open a new browser window?

Your help is greatly appreciated.

Tim

khalidali63
03-24-2003, 07:04 PM
Not knowing how does your code link,I can only guess.
Typically a link will have a target attribute

target="_blank" to open a new window.

Cheers

Khalid

tconey
03-24-2003, 09:13 PM
I do appreciate your answering, Khalid. In a normal situation that is the surest, easiest way - a given. In this case, the code does not have a typical href - it's in an array like this:

Menu3_2_1=new Array("SOD","http://www.southern-oregon-directory.com","",0,20,150);

so the target attribute can't be implemented, although that is EXACTLY the behavior I want to accomplish. Imagine about 150 lines like the above...that's why I was hoping that someone knew of a code line I could put in the script that says something like:

"if link is clicked, open a new browser window for the destination"

without having to write a seperate 14 lines of code for each array.

Does this make sense? I know what I'm trying to ask, but I may not be putting it very well. Sorry.

Thanks again for your response. I appreciate you trying to help.

Tim