How do you definitively detect whether or not the user has pressed the back button in the browser?
How do you enforce the use of an in-page back button inside a sin
This will definitely work (For detecting back button click)
$(window).on('popstate', function(event) { alert("pop"); });