I want to execute few functions before the page just exits such as logging page exit time.
The onbeforeunload event when used shows a pop-up which I don’t want.
Somehow when an outbound link is clicked, it should enter a function, fetch the link href, execute and then exit the page.
Without using JQuery.
Is this possible?
give that a shot.
If you need information about the link itself, use the
thisconstruct. Specifically:will get you the link address.
http://jsfiddle.net/6PEmj/5/