Source code

Revision control

Other Tools

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