1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fuchsia_web / webengine / test / data / creates_child_frame.html [blame]
<html>
<head><title>main frame</title></head>
<body>
<script>
// Create an iFrame in response to a nudge by the test harness (in the form
// of a posted message).
window.addEventListener('message', function(event) {
var iframe = document.createElement('iframe');
iframe.src = "child_frame.html";
iframe.onload = function() {
document.title = 'iframe loaded';
};
document.body.appendChild(iframe);
});
</script>
</body>
</html>