You havenโt clearly indicated how this will be used, but here is an example of how to execute the behavior that you describe using an ajax call:
$('a').click(function () { $('body').css('cursor', 'progress'); $.ajax({ url: "test.html", context: document.body, complete: function(){ $('body').css('cursor', 'default'); } }); } );
BiAiB
source share