Hosting a Page from the Internet with the WebView Control
You declare a WebView
control in a page in a different way than the other standard WinJS controls. Instead of using a data-win-control
attribute, you declare a WebView
control like this:
<x-ms-webview src="http://superexpertTraining.com" width="800" height="500"></x-ms-webview>
This WebView
control displays the home page from SuperexpertTraining.com in the Windows Store app (see Figure 4.24). Furthermore, the control displays the external content in an 800px by 500px area.
Be aware that if ...
Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.