summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-history-interface/history_go_zero-1.html
blob: d9d4f330b2ecebae47dabc73000d9c47d7149424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<script src="history.js"></script>
<script>
  onunload = function() {}

  onload = function() {
    if (!opener.started) {
      queue_next();
    } else {
      opener.pages.push(id);
      opener.start_test_wait();
      if (!opener.gone) {
          history.go(0);
          opener.gone = true;
      }
    }
  };
</script>