E come faresti a passare il parametro targ? e restore?![]()
function vai(){
// metto fisso targ e restore
targ = "miaFinestra";
restore = true;
// fisso anche il selObj
selOby = document.nomeForm.nomeSelect;
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
Oppure semplificando e ammettendo che il target sia un frame del frameset corrente:
function vai(){
parent.miaFinestra.location.href = document.nomeForm.nomeSelect.options
document.nomeForm.nomeSelect.selectedIndex=0;
}
ciao