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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlinks in same drop down box

Status
Not open for further replies.

kerenjamieson

Programmer
Aug 24, 2001
8
GB
I have one drop down box with 5 headings which I need to hyperlink to 5 separate forms opening in separate windows.

How do I create the hyperlinks (I can create one that works but that then goes to the same form for ALL headings in the list).

How do I get each heading hyperlinked to different forms please?

Thanks

Keren

 
add this to the source code
<FORM name=&quot;links&quot;>
<SELECT NAME=&quot;pages&quot;>
<OPTION VALUE=&quot;index.html&quot;>Home</OPTION>
<OPTION VALUE=&quot;somewhere.htm&quot;>here</OPTION>
<OPTION VALUE=&quot;somewhere.htm&quot;>here</OPTION>
<OPTION VALUE=&quot;somewhere.htm&quot;>here</OPTION>
</SELECT>
<input type=&quot;button&quot; name=&quot;go&quot; value=&quot;Go!&quot; onClick=&quot;window.location=
document.links.pages.options[document.links.pages.selectedIndex].value;&quot;></p>
</FORM> I help at your own risk, if I brake it sorry! But if I fixed it, let me know.[thumbsup2]
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top