Using the Windows Runtime in JavaScript

Using the Windows Runtime in JavaScript


When you write a Windows 8.x Store or Windows Phone Store app using JavaScript, you can use Windows Runtime classes, methods, and properties in much the same way that you would use native JavaScript objects, methods, and properties. This topic provides introductory information and links to topics that explain the basic concepts of using Windows Runtime APIs in JavaScript, including an explanation of how Windows Runtime types are represented, how to use asynchronous Windows Runtime methods, and how to listen to and handle Windows Runtime events.

You can find JavaScript reference documentation at JavaScript Language Reference.


Windows Runtime features are not available for apps that run in Internet Explorer.

For reference documentation, see . Code examples are available in JavaScript and also in C++, C#, and Visual Basic.8fe97dbf-8cd4-435f-b481-9e83d0519f9e

For instructions and guidelines for writing Windows Runtime components that can be consumed in JavaScript, see Creating Windows Runtime Components.

Casing conventions for Windows Runtime features in JavaScript differ slightly from those for other languages:

  • Namespaces and classes are in Pascal case:

  • Members of classes, including methods and properties, and members of structures and enumerations, are in camel case:

  • Event names are in lower case:

© 2016 Microsoft