blob: 1e0c6209bfc0bdf649316395c8552912aeeb143c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!doctype html>
<html>
<body>
<script>
function nestedLoaded() {
parent.postMessage({ type: 'NESTED_LOADED' }, '*');
}
// dynamically add an about:blank iframe
var f = document.createElement('iframe');
f.onload = nestedLoaded;
document.body.appendChild(f);
// Helper routine to make it slightly easier for our parent to find
// the nested frame.
function nested() {
return f.contentWindow;
}
</script>
</body>
</html>
|