How to launch a URL in IE10 from within a Windows 8 WInJS application?

不羁的心 提交于 2020-01-13 02:57:14

问题


this might be a silly question but I have not been able to find an answer. I want to launch a specific URL with IE10 from within my Windows 8 javascript application, i.e. my application will be suspended and IE10 will launch. How do I do that with javascript?

Thanks Themos


回答1:


var url = new Windows.Foundation.Uri("http://www.google.com")
Windows.System.Launcher.launchUriAsync(url);


来源:https://stackoverflow.com/questions/10600359/how-to-launch-a-url-in-ie10-from-within-a-windows-8-winjs-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!