Boh a me funge:
codice:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function annulla()
{var stringa_ricerca=document.getElementById("numero"). value;
window.open('dettaglio.asp?codice=' + stringa_ricerca ,'','width=400,height=300,left=100,top=100,menubar =no,toolbar=no,status=no,location=no');
//window.open('popup.asp?codice=' + stringa_ricerca ",'width=200,height=200,menubar,toolbar',");
}
</script>
</head>
<body>
<input type="text" id="numero">
<input type="button" name="annulla" value="invia" onClick="annulla()">
test
</body>
</html>