I created my first app on Windows 8 vs 2012 and it runs and works fine. But when I try to say \"helloworld\" from JavaScript like this:
alert(\"Hello World\
Remember that alert is not a JavaScript function, it's a browser (host) function, therefore, it's not available in non browser environments.
This link tells you to do the following
Replace all alert functions with firing an event window.external.notify("message");
Use scriptnotify event in webview to get that message.
Show metro own dialog: MessageDialog