summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html
blob: 1c5a1db8ff8e81c4ace2d10abc7d23130a1a09f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
1
<script>
function f() {
  opener.postMessage("original", "*");
  setTimeout(function () {
    document.open();
    document.write("<!doctype html>2<script>opener.postMessage('written', '*');<\/script>");
    document.close();
  }), 100;
}

window.onload = f
</script>