summaryrefslogtreecommitdiffstats
path: root/dom/base/test/iframe_postMessages.html
blob: 0b07456eb8d3ac99255a3953e9b4e18b9555d7f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML>
<html>
<body>
<script>
onmessage = function(e) {
  parent.postMessage(e.data, '*', e.ports);
}

onmessageerror = function() {
  parent.postMessage("error", '*');
}
</script>
</body>
</html>