summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/support/iframe-that-performs-top-navigation-on-popup.html
blob: 9b9eae8a7234471aaa57b8c99735018ab008734e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<body>
<script>
window.onload = function() {
  try {
    top.location = "iframe-that-send-message-to-the-opener.html";
  } catch(e) {
    top.postMessage("cannot navigate", "*");
  }
}
</script>
</body>
</html>