<script language="Javascript">
function chiudi() {
window.close();
}
</script>



<body>

<form method="POST" action="">
<input type="submit" value="Invia" name="B1"><input type="button" value="Pulsante" name="B2" onclick="chiudi();"></p>
</form>