Outlook Web Add-In: Change the embedded browser and open browser of your choice

爷,独闯天下 提交于 2021-02-08 12:12:32

问题


I am just developing an Outlook Web Add-In. I suppose that Microsoft uses Internet Explorer 11 which is embedded in the Outlook 2016 desktop client. Is there a possibility to change this to another browser, for example Chrome.

I also open a new browser in JavaScript (window.open) which is again Internet Explorer 11. In this case I want to change the browser too, e.g. Chrome.


回答1:


Answer to first question - You cannot change the browser in which the addin is loaded inside Outlook Desktop.

Answer to second question - If you are trying to open a url specified in your appDomains(in the manifest) then it would open in IE to allow communication back to the addin. If you are trying to open just any random url which does not need to communicate back to the addin and not specified in your app domain then it will open in the default browser (set by the user for the device).

For the scenario where you want communication between the new window and addin we suggest using the displayDialogAsync API instead of window.open. You can find documentation about it here: https://dev.office.com/reference/add-ins/shared/officeui.displaydialogasync?product=outlook&version=v1.5



来源:https://stackoverflow.com/questions/47596141/outlook-web-add-in-change-the-embedded-browser-and-open-browser-of-your-choice

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