charlie
08-26-2003, 12:19 PM
hey guys,
i had this dropdown list that uses javscript to go to the url when clicked, it did work but i went through removing whitespace from my files and maybe i removed something from the code but it doesnt work now, could someone have a look, it's not live so here's a bit of code:
<script type="text/javascript">
function go()
{
location=document.forms[0].gowhere.value
}
</script>
<select id="gowhere" onchange="go()">
<option>-Select location-
<option value="alfaz.html">Alfaz del Pi
<option value="alicante.html">Alicante
<option value="altea.html">Altea
<option value="benidorm.html">Benidorm
i had this dropdown list that uses javscript to go to the url when clicked, it did work but i went through removing whitespace from my files and maybe i removed something from the code but it doesnt work now, could someone have a look, it's not live so here's a bit of code:
<script type="text/javascript">
function go()
{
location=document.forms[0].gowhere.value
}
</script>
<select id="gowhere" onchange="go()">
<option>-Select location-
<option value="alfaz.html">Alfaz del Pi
<option value="alicante.html">Alicante
<option value="altea.html">Altea
<option value="benidorm.html">Benidorm