English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi Everybody,

I want urgent help for opening only few links in a drop-down menu to new windows. :(

I know how to open ALL links in a drop-down menu to new windows as follows:



But I'm hitting a road block when trying to open only few links in new windows. I tried looking on the net and got the following link but it was not useful:

http://www.webxpertz.net/forums/showthread.php?t=26563

Can someone please help ?

Regards,
Hrish
Bangalore

2006-06-06 21:06:50 · 2 answers · asked by dhempe 1 in Computers & Internet Programming & Design

2 answers

Hi, he is using javascript but in a wrongly matter...

I recently answered a post concerning this: I have posted it in my blog. You can take a look on how I did it here:

http://www.m0interactive.com/archives/2006/06/13/how_to_creat/


I created a javascript function that does that. take a look below:











2006-06-13 18:51:29 · answer #1 · answered by ? 6 · 0 0

I would use javascript. In the SELECT NAME tag, just make it point to your javascript function. onChange = javascript:openWindow();>

Then create a javascript function called openWindow(). You can also write the code in there to open a new window. But before you do that, use the "if" statement to open only certain links with the new window.

if (document.form.selectURL1.value = "Job Definition")
then put code to open in same window
else
open in new window

You can just force this to happen in your javascript.

2006-06-07 00:57:54 · answer #2 · answered by Sean I.T ? 7 · 0 0

fedest.com, questions and answers