backDetect

Determining when a user clicks their browser's back button has never been easier with this jQuery plugin. With a quick easy install and minimal set up work you'll be firing callback functions on back button declarations in no time.

View the Project on GitHub ianrogren/jquery-backDetect

Using jQuery-backDetect

Can append to any element or class:

          $(window).load(function(){
            $('body').backDetect(function(){
              alert("Look forward to the future, not the past!");
            });
          });
        

Click the back button to test.