codice:
<html>
<head>
</head>
<body>
<script type="text/javascript">
var theTarget = "_blank";
function goThere(){
if(!document.theForm1.theMenu1.selectedIndex==""){
window.open(document.theForm1.theMenu1.options[document.theForm1.theMenu1.selectedIndex].value,theTarget,"");}}
</script>
<form name="theForm1">
<select name="theMenu1" size=1 onChange="goThere()">
<option selected value="">siti preferiti
<option value="http://www.yahoo.it">yahoo
<option value="http://www.msn.com">msn
</select>
</form>
<script type="text/javascript">
var theTarget = "_blank";
function goThere(){
if(!document.theForm2.theMenu2.selectedIndex==""){
window.open(document.theForm2.theMenu2.options[document.theForm1.theMenu1.selectedIndex].value,theTarget,"");}}
</script>
<form name="theForm2">
<select name="theMenu2" size=1 onChange="goThere()">
<option selected value="">siti preferiti
<option value="http://www.ciao.it">ciao
<option value="http://www.meteo.it">meteo
</select>
</form2>
</body>
</html>
var the target = "_blank"; non sò come rinominarlo forse con var the target2 = "_blank";
....e anche "document" e "selectedIndex" avevo provato a mettere un "1" alla fine del nome..
ho fatto diverse prove e non sono riuscito... eppure dovrebbe essere semplice (per chi lo sa fare)
mi puoi aiutarmi ulteriormente ?