Question : Use javascript to get the href value of a clicked link

Is there a way to use javascript to get the href value of a link that was clicked when onUnLoad is fired? I want to create a function that runs when a page unloads and somehow get the href value of the link that user clicked to leave the page.

So like this:
<script>
function Redirect() {
var linkclicked="this will be the value of whatever link was clicked";
}
</script>

<body onUnLoad="Redirect()">

<div class="leave"><a href="http://www.google.com">Leave to Google</a></div>

and when the user clicks "Leave to Google" the value "http://www.google.com" will be put into the variable "linkclicked"  
but the tricky part is that I can't add anything to the link itself. The solution must be contained within the javascript function.

Thanks.

Answer : Use javascript to get the href value of a clicked link

There is an upgrade package available but it upgrades the entire installation.  They strongly recommend that you backup everything before using it.
http://www.apachefriends.org/en/xampp-windows.html

Upgrading only PHP from a standard PHP package may not work.  XAMPP typically is installed in it's own directories that are different from what a plain PHP installation usually uses.  The ini files are also in a different location.  And there are registry entries for the installations.
Random Solutions  
 
programming4us programming4us