blob: cb9a870bb1b98c4d8a83aab0978e24e13cb29b6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<script>
window.addEventListener("message", function(msg) {
parent.postMessage(msg.data, "*");
});
parent.postMessage({
first: "a string",
second: ["an", "array"],
third: {an: 'object'}
}, '*');
</script>
</head>
<body>
<h1>Inner iframe</h1>
</body>
</html>
|