| 1 | <html lang="en"> |
| 2 | <head> |
| 3 | <meta charset="utf-8" /> |
| 4 | <script type="application/javascript" src="../../../src/htmx.js"></script> |
| 5 | <title>History - Regression 2 Page 1</title> |
| 6 | <script> |
| 7 | htmx.on("htmx:beforeHistorySave", function(evt){ |
| 8 | console.log("Saving history : ", evt.detail); |
| 9 | console.log("History Cache Before:", JSON.parse(sessionStorage.getItem("htmx-history-cache"))) |
| 10 | setTimeout(function () { |
| 11 | console.log("History Cache After:", JSON.parse(sessionStorage.getItem("htmx-history-cache"))) |
| 12 | }, 10); |
| 13 | }) |
| 14 | </script> |
| 15 | </head> |
| 16 | <body style="padding:20px;font-family: sans-serif" hx-boost="true"> |
| 17 | <a href="page2.html">To Page 2</a> |
| 18 | </body> |
| 19 | </html> |