browser back button to go to another page jquery code example Example: jquery back button event $(window).on('popstate', function(event) { alert("pop"); });