1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<script language="Javascript">
<!--
function formmessage() {
document.forms["general"].target="_self";
document.forms["general"].action="javatestok.asp";
general.submit();
}
//-->
</script>
<form name="general" method="post" action=""></form>
<select name="mess" size="1" class="form">
<option value="aucun" selected="selected"> aucune sélection </option>
<option value="1">apple</option>
<option value="2">orange</option>
</select>
<a href="#" onclick="if (mess.selectedIndex > 0){javascript:formmessage(); return true;}">ok</a>
</form> |