Potato.Head 0 Light Poster

Hi to all, I get the following problem Opera Browser doesn't fired the Unload Event.
I try to found a solution on the Web, but seems that I'm not the only one with this problem, Opera Developers claims that the unload event is not fired when refreshing the page, click on 'back' or click on 'forward' buttons, but for me doens't work even when changing the address bar, closing the browsers, never is called.
I found the following link:
http://webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/
And they have the example:

<html> 
<head> 
<script> 
 
function pageLoaded()
{
    alert("load event handler called.");
}
 
function pageUnloaded()
{
    alert("unload event handler called.");
}
 
window.addEventListener("load", pageLoaded, false);
window.addEventListener("unload", pageUnloaded, false);
 
</script> 
<body> 
<a href="http://www.webkit.org/">Click for WebKit</a> 
</body> 
</html>

The 'Unload' event is called only if I click on the link.
Is there a workaround for this problem?
I need to know when a user refresh, moves to another page, to send some notifications, thats the reason I need the 'Unload' event.
Thanks in advanced.:?:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.