Friends of TTF:
I'm trying to send a form on IE5.o, but it doesdn;t works. On NN 4.7 works fine. The code is (Form Name: menu)
<SCRIPT LANGUAGE="JavaScript">
function sendForm(control, text)
{
alert("Previous value: " + control.value );
if ( control.value == text )
{
control.value = "no";
}
else
{
control.value = text;
}
alert("Last value: " + control.value );
document.menu.submit();
}
</SCRIPT>
The place where I call the function is:
<A HREF="#"
onClick='sendForm (document.menu.catalogs, "yes"
;'>
where "document.menu.catalogs" is a hidden control.
Cold you tell me why?
I'm trying to send a form on IE5.o, but it doesdn;t works. On NN 4.7 works fine. The code is (Form Name: menu)
<SCRIPT LANGUAGE="JavaScript">
function sendForm(control, text)
{
alert("Previous value: " + control.value );
if ( control.value == text )
{
control.value = "no";
}
else
{
control.value = text;
}
alert("Last value: " + control.value );
document.menu.submit();
}
</SCRIPT>
The place where I call the function is:
<A HREF="#"
onClick='sendForm (document.menu.catalogs, "yes"
where "document.menu.catalogs" is a hidden control.
Cold you tell me why?