简体   繁体   中英

URL for opening a link in a calendar application

This is a html link/href/url when you want to open a link with an email client (like outlook)

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

What should be an html link when you want to open the link with a calendar client (like calendar from microsoft outlook or similar calendar application) in order for them to also save some information regarding appointments/events?

Is there a general approach to these urls to be able to open with them different applications?

Thank you

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

I resolved this by creating below registry entry

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"

then markup should be like

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM