PHP expert |
|
De javascript code is als volgt:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript"> <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ +".location='"+selObj .options [selObj .selectedIndex ].value +"'"); if (restore) selObj.selectedIndex=0; } //--> </script>
Aanroep code:
<select name="menu1" onChange="MM_jumpMenu('self',this,0)">
<option>test</option>
<option value="test.php">teste</option>
</select>
<select name="menu1" onChange="MM_jumpMenu('self',this,0)"> <option>test</option> <option value="test.php">teste</option> </select>
ik wil dat hij in een nieuw venster opent. blank ipv self werkt niet, net als _blank.
|