Outlook Addin window.open

戏子无情 提交于 2019-12-01 11:54:51

问题


I´m new to the addins, just want to perform a simple task as creating a button with a link in the taskbar that opens a browser and that´s it.

So far created the project based on ms tutorial and everything is working great (with fixed certificate problems).

To my understand this should be as easy as to create a button with an ExecuteFuncion actions mapping to a javascript function with a window.open e.g.

function windowOpen(event)
{
    window.open("https://www.microsoft.com");
    event.completed();
}

Thanks for the help,

Regards,

André


回答1:


For security reasons, Outlook does not support window.open directly inside of Add-ins. To open a window in an Outlook Add-in you can use the displayDialogAsync API (documentation here.) We recommend this guide to understand end-to-end usage of displaying a dialog in an Add-in.



来源:https://stackoverflow.com/questions/46016470/outlook-addin-window-open

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