summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/browsing-the-web/navigating-across-documents/empty_fragment_iframe.html
blob: 26b28a0d7dcb912dc1f1131b98993bb29d3a18c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
<script>
var timeout;
onload = function() {
  location.hash = "";
  timeout = setTimeout(function() { parent.child_succeeded() }, 2000);
};

onbeforeunload = function() {
  clearTimeout(timeout);
}
</script>