jQuery before leaving a page (ASP MVC3 framework)
Posted on 2012-03-31
I was wondering if it is possible to make some jQuery code run on the current page when a link to another page is clicked.
For instance, I have a menubar, and when someone clicks a link to another page, I want some elements to float off of the current page with jQuery's animate method before the other page loads.
I'm using the ASP.NET MVC3 framework.
Is it possible to do this?