codice HTML:
<html><head><link href="stile.css" rel="stylesheet" type="text/css"></head><body><input type="button" value="CLICCAMI" onclick="<script>document.getElementById('ciao').style.display = 'none';</script>"><div id="ciao" class="lam"></div></body></html>
codice:
div.lam { background-color: red;      width: 100px;
      height: 100px;
    }
quando vado a cliccare dovrebbe scomparire il div, mentre non funziona, mi potreste dire perchè?