What's window.onunload?
<p>Im a beginner and i see that line of code a lot on javascript files , for example  : </p>

<pre><code>window.onunload=function(){};
</code></pre>

<p>when should i use this and what is it role exactly ?  </p>

<p>thank you .</p>
