【问题标题】:URL for opening a link in a calendar application在日历应用程序中打开链接的 URL
【发布时间】:2017-03-15 15:33:35
【问题描述】:

当您想使用电子邮件客户端(如 Outlook)打开链接时,这是一个 html 链接/href/url

<a href="mailto:someone@example.com?Subject=Hello%20again">Send Mail</a>

当您想使用日历客户端(例如来自 Microsoft Outlook 或类似日历应用程序的日历)打开链接以便它们也保存有关约会/事件的一些信息时,应该是什么 html 链接?

这些 url 是否有一种通用方法可以用它们打开不同的应用程序?

谢谢

【问题讨论】:

标签: html url calendar


【解决方案1】:

在不同的日历(Google、Outlook 等)之间没有通用链接,您可以使用其中的一些,但我的建议是使用免费的“链接构建器”,例如 http://addtocalendar.comhttps://www.addevent.com例如。

【讨论】:

    【解决方案2】:

    我通过创建下面的注册表项解决了这个问题

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\outlookwebcal]
    @="URL:Outlook Add Internet Calendar"
    "URL Protocol"=""
    
    [HKEY_CLASSES_ROOT\outlookwebcal\shell]
    @="open"
    
    [HKEY_CLASSES_ROOT\outlookwebcal\shell\open]
    
    [HKEY_CLASSES_ROOT\outlookwebcal\shell\open\command]
    @="\"C:\\Program Files\\Microsoft Office\\root\\office16\\Outlook.exe\" /select outlook:calendar"
    

    那么标记应该像

    <button id="outlookCalendarBtn" onclick="window.open('outlookwebcal:')">
       Open Outlook Calendar
    </button>
    

    【讨论】:

      猜你喜欢
      • 2015-06-23
      • 1970-01-01
      • 1970-01-01
      • 2016-03-15
      • 2023-03-24
      • 1970-01-01
      • 2013-06-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多