Allora, ho un form di questo tipo:
<form method="GET">
<input type="text" name="user">
<input type="password" name="pwd">
<select name="ambience" size="1">
<option>DET</option>
<option>STAT</option>
</select>
</p>
<input type="submit" name="Submit" value="Connect" onclick="javascript:lancia('index7.htm', 'aaa')">
</p>
</form>
Dovrei fare in modo che sul click del form, mi venga lanciato il javascript che mi apre la finestra a schermo intero.
il javascript che uso e' questo:
<script language="JavaScript">
<!--
function lancia(url,titolo) {
if (screen.width > 1280)
{
var width = 1270;
var left = (screen.width - width) /2;
var height = width/750*530;
var top = (screen.height - height)/2;
}
else
{
var width = screen.width - 10;
var height = width/750*530;
left = 0;
var top = 0;
}
window.open (url,titolo, 'scrollbars=yes, left=' + left + ',screenX=0,top=' + top + ',screenY=0,width=' + width + ',height=' + height);
}
//-->
</script>
Il problema e' che la finestra a schermo intero si apre, ma nell'url non vengono concatenati i campi del form.
Come devo fare?
Grazie.