1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
fuchsia_web / webengine / test / data / iframe.html [blame]
<html>
<head>
<title>this page has an iframe</title>
</head>
<body>
<iframe id="iframeId" title="iframe title"></iframe>
<script>
window.addEventListener("message", (event) => {
if (event.data.title) {
document.title = event.data.title;
}
}, false);
var iframe = document.getElementById("iframeId");
if (typeof iframePermissionPolicy != 'undefined') {
iframe.allow = iframePermissionPolicy;
}
iframe.src = iframeSrc;
iframe.onload = () => {
document.title = "iframe loaded";
}
</script>
</body>
</html>