locked
can we develop windows 8 app for run on web browsers

    Question

  • hi

    can we  develop windows 8 app for run on web browsers like ie firefox etc using html and javascript 


    adil

    Monday, January 7, 2013 8:28 PM

Answers

  • You can certainly write code that can be used in both an app and a site, and they can use common services, but a Win8 app written in HTML, CSS, and JavaScript has specific structures that are distinctly different from the structure of a web site/web app. In particular, an app ties into various platform features such as the WinRT API, WinJS, and the fact that it's running inside the WWAHost process instead of a browser. Win8 apps are also generally written in an AJAX style (a single HTML page wherein parts of the DOM are swapped in and out) rather than using <a> navigation.

    But like I said, if you modularize your app code to separate pure app logic that can run in a browser (and doesn't have any Windows-specific dependencies) from that which is platform-specific, then you can achieve some amount of code-sharing.

    Kraig
    Author, Programming Windows 8 Apps with HTML, CSS, and JavaScript, a free ebook from Microsoft Press


    • Marked as answer by Song Tian Monday, January 14, 2013 10:57 AM
    Monday, January 7, 2013 8:56 PM
  • Hi,

    As Kraig said, Windows Store App can't run on web browser, but only windows 8. You can develop windows store app with html5 and javascript.

    #Create your first Windows Store app using JavaScript (Windows)

    http://msdn.microsoft.com/en-us/library/windows/apps/br211385.aspx


    Roy
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Song Tian Monday, January 14, 2013 10:57 AM
    Tuesday, January 8, 2013 7:30 AM

All replies

  • You can certainly write code that can be used in both an app and a site, and they can use common services, but a Win8 app written in HTML, CSS, and JavaScript has specific structures that are distinctly different from the structure of a web site/web app. In particular, an app ties into various platform features such as the WinRT API, WinJS, and the fact that it's running inside the WWAHost process instead of a browser. Win8 apps are also generally written in an AJAX style (a single HTML page wherein parts of the DOM are swapped in and out) rather than using <a> navigation.

    But like I said, if you modularize your app code to separate pure app logic that can run in a browser (and doesn't have any Windows-specific dependencies) from that which is platform-specific, then you can achieve some amount of code-sharing.

    Kraig
    Author, Programming Windows 8 Apps with HTML, CSS, and JavaScript, a free ebook from Microsoft Press


    • Marked as answer by Song Tian Monday, January 14, 2013 10:57 AM
    Monday, January 7, 2013 8:56 PM
  • Hi,

    As Kraig said, Windows Store App can't run on web browser, but only windows 8. You can develop windows store app with html5 and javascript.

    #Create your first Windows Store app using JavaScript (Windows)

    http://msdn.microsoft.com/en-us/library/windows/apps/br211385.aspx


    Roy
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Song Tian Monday, January 14, 2013 10:57 AM
    Tuesday, January 8, 2013 7:30 AM