External protocol request

巧了我就是萌 提交于 2019-12-08 08:54:28

问题


I am trying to build something that will return an .ics file and open it in Apple iCal. I have checked out websites that do something like this and noticed that in Chrome, a "External protocol request" dialog box comes up and then, if you click OK, iCal opens, whereas Safari just opens up iCal automatically. Firefox opens up a "launch application" dialog box which lets you choose which application to open it in; if you choose calendar then it opens. How do I get my application to evoke such behavior? Right now I can only make the file download, but it doesn't automatically open. Is this a frontend thing or backend?


回答1:


Create a simple <a href=""> link, but instead of using http:// to start the url, use webcal://



来源:https://stackoverflow.com/questions/17953768/external-protocol-request

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