Page 1 of 1

Open new browser window

Posted: Wed Jan 14, 2004 6:57 pm
by lplatz
The following snippet is from a drop-down menu. Simple enough, however, if I use an external link to another site, I'd like to open the link in a new browser window. In the example below, I'd like to open the second item "Calculators" (http://www.calculators.htm) in a new browser window.

<item caption="Financial Planning">
<item caption="Managing Finances" link="mng_finances.php"/>
<item caption="Calculators" link="http://www.calculators.htm"/>
</item>

Thanks in advance!
Les

Posted: Wed Jan 14, 2004 7:02 pm
by Gen-ik
I guess you will have to use JavaScript to check if the link contains either http:// or www. or both and then go from there.

Posted: Wed Jan 14, 2004 7:02 pm
by Unipus
I've never heard of an <item> tag, so I'm guessing that's proprietary or XML. What I do know is that generally the easiest, best way to open a link in a new window is like this:

<a href="whatever" target="_blank">klick!</a>

Posted: Fri Jan 16, 2004 11:48 am
by lplatz
UNIPUS IS CORRECT! I found this out on my own only to return to see Unipus reply. Thank you for providing solution...works perfect.