back button php code example
Example 1: jquery back button event
$(window).on('popstate', function(event) {
alert("pop");
});
Example 2: button back php
<button onclick="history.go(-1);">Back </button>
$(window).on('popstate', function(event) {
alert("pop");
});
<button onclick="history.go(-1);">Back </button>