Windows Runtime (WinRT) for JavaScript
The Windows Runtime (or simply WinRT) is the collection of native APIs that power the Universal Windows Platform (UWP) apps that run across all Windows 10 device families. WinRT APIs are projected into a number of different languages, including C#, C++, Visual Basic, and JavaScript.
As a web developer, you can call these native Windows APIs from JavaScript when your web app is running as an installed Windows 10 app (launched from the wwahost.exe process, rather than the browser). Additionally, your website running as Windows 10 app can also use the Microsoft Edge webview control to display remote and local web content and MSApp APIs for blob and stream handling, among other things.
Here are the top-level WinRT namespace areas available to all Windows 10 apps:
For more details on usage, check out Using the Windows Runtime in JavaScript. To learn how to run your website as a Windows app, try the Tailor your PWA for Windows tutorial.
WebView
The Microsoft Edge WebView control enables you to host web content within your Windows 10 app. Its similar to using an
<iframe>, but provides a lot more features and control over the experience.
MSApp
The MSApp global object (
window.MSApp) provides assorted helper functions for JavaScript-based Windows 10 apps, such as utilities for converting between web standards-based and equivalent WinRT object types.
Feedback