...

View Full Version : onchange="location.href



brainfart
01-16-2003, 05:25 AM
I am having a bit of a brainfart
I want each option below to be link to a different page
Dehumiders will be link to the Dehumiders page
Steel File Case will be link to the Steel File Case page
and so on I have it link to just the
href='safe_accessories.htm'">



<td width="260" valign="top" height="23" bgcolor="#FFFFCC" align="center">
<font face="Arial"><select size='1' name='SelectVehicle' onchange="location.href='safe_accessories.htm'">
<option selected>Select A Safe Accessories</option>
<option>Dehumiders</option>
<option>Steel File Case</option>
<option>Pistol Rack</option>
<option>Custom Locks</option>
<option>Pistol Pockets- 3 Sizes Available</option>
<option>Electronic Locks</option>
<option>Gun Safe Prints</option>
</select>

cg9com
01-16-2003, 06:21 AM
this is what i would do:

<form style="margin:0px;">
<select onChange="location=options[selectedIndex].value;">
<option value="http://www.website.com/">website.com</option>
</select>
</form>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum