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");
I get an error:
Unhandled exception at line 21,
column 13 in ms-appx://1af489cf-bac6-419b-8542-fdc18bdd2747/default.html
0x800a1391 - JavaScript runtime error: 'alert' is undefined
What is the alternative if alert is obsolete?
You should use
Windows.UI.Popups.MessageDialog:However, you should be aware that:
I answered another question like this here. Here’s the code to allow you to call alert, and have multiple messages in flight: