Skip to main content

Jquery to intercept link click temporarily

I think this is a bad idea from a usability standpoint... But...

Untested Code:
$('a').click(function(){
    var hrefLoc = $(this).attr('href');
    $('body').fadeOut("slow",function(){
        window.location = hrefLoc;
    });
    return false;

});

Might be a better way to do it, here you go.

Ref: http://groups.google.com/group/jquery-en/browse_thread/thread/2c408f65e0...