How to Launch Metro app in windows 8 from IE using javascript

非 Y 不嫁゛ 提交于 2019-12-06 11:20:05

问题


I want to launch a metro application in windows 8 when user clicks a link on a web page that is rendered in IE 10.


回答1:


If you have a Metro application your website can ask IE to show an install/launch button by adding some meta tags:

<meta name="msApplication-ID"content="{ID}"/>
<meta name="msApplication-PackageFamilyName"content="{PackageFamilyName}"/>

Details at http://msdn.microsoft.com/en-us/library/ie/hh781489(v=vs.85).aspx

You can also register your Metro application to handle protocols and files which the link could point to. This would then prompt the user to open the default application or choose another (much like download files from the web).

Registering a protocol: http://msdn.microsoft.com/en-us/library/windows/apps/hh452686.aspx

Registering as a file handler: http://msdn.microsoft.com/en-us/library/windows/apps/hh452684.aspx



来源:https://stackoverflow.com/questions/9613943/how-to-launch-metro-app-in-windows-8-from-ie-using-javascript

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