OLD | NEW |
1 <div id="pageData-name" class="pageData">Embed Content</div> | 1 <h1>Embed Content</h1> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 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> |
11 | 11 |
12 <p> | 12 <p> |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 </p> | 272 </p> |
273 | 273 |
274 <pre> | 274 <pre> |
275 var messageHandler = function(e) { | 275 var messageHandler = function(e) { |
276 console.log('Background script says hello.', e.data); | 276 console.log('Background script says hello.', e.data); |
277 }; | 277 }; |
278 | 278 |
279 window.addEventListener('message', messageHandler); | 279 window.addEventListener('message', messageHandler); |
280 </pre> | 280 </pre> |
281 | 281 |
282 <p class="backtotop"><a href="#top">Back to top</a></p> | 282 <p class="backtotop"><a href="#top">Back to top</a></p> |
283 | |
OLD | NEW |