<script language="Javascript" type="text/javascript"> … codice javascript … </script>
<input type="submit" name="submit" value="Premi questo" onclick="…istruzione javascript…" />