clysley81
05-08-2003, 06:42 AM
I'm hoping you can help me. I've got a number of pull down menus which go directly to sites using the simple code below.
<form>
<select onChange="if(options[selectedIndex].value)
window.location.href=(options[selectedIndex].value)" name="Nonselectiveherbicide" size="1">
<option>Select a product site.....
<option value="http://www.google.com">Google
<option value="http://www.bbc.co.uk">BBC
</select>
</form>
This works fine but when you select one and it goes to the website and then you press Back the pulldown has not refreshed its self and you can't use the same link again untill you have pressed F5 to refresh it. Is there an extra bit of JS I need to add or is thier better JS I can use for a pulldown
Chris
<form>
<select onChange="if(options[selectedIndex].value)
window.location.href=(options[selectedIndex].value)" name="Nonselectiveherbicide" size="1">
<option>Select a product site.....
<option value="http://www.google.com">Google
<option value="http://www.bbc.co.uk">BBC
</select>
</form>
This works fine but when you select one and it goes to the website and then you press Back the pulldown has not refreshed its self and you can't use the same link again untill you have pressed F5 to refresh it. Is there an extra bit of JS I need to add or is thier better JS I can use for a pulldown
Chris