summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-history-interface/traverse_the_history_write_after_load_1-1.html
blob: af0118a01e7a2039bef85cfd83473e1845c6b9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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);} opener.start_test_wait();<\/script>");
      document.close();
      if (opener.started) {
        opener.start_test_wait();
      }
    }, 100);
  }
</script>