blob: 0f2ce1e8fe8af58d01c6d43f583a0229680b1cc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<html>
<body>
<h3>test page</h3>
<iframe src="about:blank"></iframe>
<script>
"use strict";
window.onmessage = function(evt) {
if (evt.data === "updated-iframe-url") {
window.postMessage("frame-updated", "*");
}
};
window.onload = function() {
document.querySelector("iframe").setAttribute("src", "context_tabs_onUpdated_iframe.html");
};
</script>
</body>
</html>
|