OLD | NEW |
1 <h1>Embed Content</h1> | 1 <h1>Embed Content</h1> |
2 | 2 |
3 | 3 |
4 <p> | 4 <p> |
5 The <a href="app_architecture.html#security">packaged apps security model</a> di
sallows | 5 The <a href="app_architecture.html#security">packaged apps security model</a> di
sallows |
6 external content in iframes and | 6 external content in iframes and |
7 the use of inline scripting and <code>eval()</code>. | 7 the use of inline scripting and <code>eval()</code>. |
8 You can override these restrictions, | 8 You can override these restrictions, |
9 but your external content must be isolated from the app. | 9 but your external content must be isolated from the app. |
10 </p> | 10 </p> |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 </p> | 271 </p> |
272 | 272 |
273 <pre> | 273 <pre> |
274 var messageHandler = function(e) { | 274 var messageHandler = function(e) { |
275 console.log('Background script says hello.', e.data); | 275 console.log('Background script says hello.', e.data); |
276 }; | 276 }; |
277 | 277 |
278 window.addEventListener('message', messageHandler); | 278 window.addEventListener('message', messageHandler); |
279 </pre> | 279 </pre> |
280 | 280 |
281 <p class="backtotop"><a href="#top">Back to top</a></p> | 281 <p class="backtotop"><a href="#top">Back to top</a></p> |
OLD | NEW |