HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <script> window.onpopstate = function(event) { alert("location: " + document.location + ", state: " + JSON.stringify(event.state)); }; history.pushState({page: 1}, "title a", "?page=1"); history.pushState({page: 2}, "title b", "?page=2"); history.back(); </script> </body> </html>
OUTPUT
×

Save as Private