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