history-replace.html 303 B

1234567891011
  1. <html>
  2. <body>
  3. <script type="text/javascript" charset="utf-8">
  4. window.addEventListener("load", function() {
  5. window.history.replaceState(window.history.state, "test page", window.location.href)
  6. require('electron').ipcRenderer.sendToHost('history', window.history.length);
  7. })
  8. </script>
  9. </body>
  10. </html>