This might be what you are looking for.

$('a').bind('click', function(event) {
        event.preventDefault();
        newHref = $(this).attr('href');
        // ================
        // = Do something =
        // ================
        window.location = newHref;
});

[EMAIL PROTECTED]

On May 14, 4:39 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Is it possible to get the browsers next url from an onunload call? I'm
> trying to determine if a user is leaving my site, and if they are,
> send an ajax request.

Reply via email to