URGENT!!! Why won't my html dropdown menu work? Everytime I select a link...all...

  • Thread starter Thread starter funny1tou
  • Start date Start date
F

funny1tou

Guest
...it does is refresh? <script TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
= myVal;
}
return false;
}
//-->
</script>

<FORM
ACTI
METHOD=POST >
<SELECT NAME="gourl">

<form name="jump">
<select name="menu">

</SELECT>

<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>


That's the code that I have now for it....can anyone help fix/edit it? I want my website working properly and I tried googling it all...and it didn't help =(

Note: I took out the option values in this because yahoo only allows so many links and the question kept coming up no allowing me to post it...so yeah. Any help is greatly appreciatied =D
 
Well, your HTML doesn't make any sense. Why do you have a form element inside a select element? That's not valid HTML.

Also, your dropdown() function is not referenced anywhere. This is why the page is just refreshing; you're not actually calling that function anywhere. You'd need to call that function when you change one of the select elements, or when you click on the button.
 
Back
Top