Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down box and hyperlinks

Status
Not open for further replies.

FlatHead

Programmer
Oct 13, 2000
50
GB
I have a drop Down box with some values such as Robot 1,Robot 2, Robot 3....

All i want is once the user select each one from the Drop down menu to automatically linmk them to external URLs

for example for robot 1 i want : e.t.c e.t.c

Pleasee help
Regards ZAC
 
ZAC,


<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function select1_onchange() {
document.location = &quot; +
document.form1.select1.options[document.form1.select1.selectedIndex].value;
}
//-->
</SCRIPT>
</head>

<body topmargin=&quot;8&quot; link=&quot;#025728&quot; vlink=&quot;#025728&quot; alink=&quot;#ad9567&quot;>
<FORM action=&quot;&quot; method=POST id=form1 name=form1>

<SELECT id=select1 name=select1 LANGUAGE=javascript onchange=&quot;return select1_onchange()&quot;>
<OPTION value=&quot;<OPTION value=&quot;<OPTION value=&quot;</SELECT></FORM>



Hope this helps
-pete
 
I have a similar page with the same thing... a SELECT list of hyperlinks, but when I use the code above, it works in Mozilla and IE6, but not Netscape 4... Unfortunately a large part of our user base still uses NS4, so does anyone happen to have a NS4 compatible solution for this?

Thanks in Advance,
MG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top