what is the difference between window.unload and window.onunload
<p>I've tested both of them and they work as expected in Opera, IE, FF and Chrome. I've searched <code>window.unload</code> on google and <a href="https://developer.mozilla.org/en-US/search?q=window.unload" rel="nofollow">https://developer.mozilla.org/en-US/search?q=window.unload</a> but it didn't help much. What is the difference between them or <code>window.unload</code> is just the older version of <code>window.onunload</code>?</p>
