summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-history-interface/traverse_the_history_write_after_load_1-1.html
blob: 945c8d81f8271cc9f67b01b5f0040f76651fd8d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!doctype html>
2
<script>
  onunload = function() {}
  opener.pages.push(2);
  onload = function() {
    setTimeout(function() {
      document.write("<!doctype html>3<script>opener.pages.push(3); if(!opener.started) {opener.started = true; history.go(-1);}<\/script>");
      document.close();
    }, 100);
  }
</script>