salve a tutti
il seguente codice su mozilla mi funziona correttamente, ma su explorer non funziona la ricerca su google e mi dice "Necessario oggetto"
Ecco il codice:
<script language="JavaScript">
<!--
function vaiURL(q)
{
var form=document.forms[0]
var testo=form.what.value
window.open("http://www.google.it/search?q="+testo,'esempio')
return ""
}
//-->
</script>
<Form name=srv action=intro.asp method=post>
<div style="margin-left:10px ">Utente
<input type="text" style="width:131px; height:21px; font-family:tahoma; font-size:11px " name=utente>
</div>
<div style="margin-left:10px ">Password
<input type="password" style="width:131px; height:21px; font-family:tahoma; font-size:11px " name=password>
</div>
<br style="line-height:5px ">
<input name="" type="image" src="images/subscribe.jpg" align="absmiddle" style="margin-left:68px ">
</Form>
<br style="line-height:5px ">
<br style="line-height:5px ">
<div style="margin-left:10px ">Cerca su Google
<INPUT NAME="what" style="width:131px; height:21px; font-family:tahoma; font-size:11px ">
</div>
<br style="line-height:5px ">
<INPUT type=image src="images/google.jpg" align="absmiddle" style="margin-left:68px" onClick="javascript:vaiURL(this.form.what.value)" >
</Form>
</div>
Potete aiutarmi ?
Grazie

Rispondi quotando