OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <object id="plugin" | 3 <object id="plugin" |
4 type="application/browser-plugin" | 4 type="application/browser-plugin" |
| 5 name="start" |
5 width="640" | 6 width="640" |
6 height="480"></object> | 7 height="480"></object> |
7 <script> | 8 <script> |
8 var loadstop = false; | 9 var loadstop = false; |
9 var requestCommChannel = false; | 10 var requestCommChannel = false; |
10 function SetSrc(src) { | 11 function SetSrc(src) { |
11 var plugin = document.getElementById('plugin'); | 12 var plugin = document.getElementById('plugin'); |
12 plugin.src = src; | 13 plugin.src = src; |
13 } | 14 } |
14 // Open a two-way communication channel with the guest. | 15 // Open a two-way communication channel with the guest. |
(...skipping 13 matching lines...) Expand all Loading... |
28 var plugin = document.getElementById('plugin'); | 29 var plugin = document.getElementById('plugin'); |
29 plugin.addEventListener('-internal-loadstop', function(e) { | 30 plugin.addEventListener('-internal-loadstop', function(e) { |
30 loadstop = true; | 31 loadstop = true; |
31 if (requestCommChannel) { | 32 if (requestCommChannel) { |
32 plugin.contentWindow.frames.postMessage('test', '*'); | 33 plugin.contentWindow.frames.postMessage('test', '*'); |
33 } | 34 } |
34 }); | 35 }); |
35 </script> | 36 </script> |
36 </body> | 37 </body> |
37 </html> | 38 </html> |
OLD | NEW |