back button in jquery code example
Example 1: jquery back button event
$(window).on('popstate', function(event) {
alert("pop");
});
Example 2: js go back
history.back()
$(window).on('popstate', function(event) {
alert("pop");
});
history.back()