Éléments vides en HTML

<script>
  function func(){
   document.getElementById('div').innerHTML=''
  }
</script>

<button onclick='func()'>Click</button>
<div id="div">
  This disappears
</div>
PanosG