Outlook Web加载项:更改嵌入式浏览器并打开您选择的浏览器 [英] Outlook Web Add-In: Change the embedded browser and open browser of your choice

查看:90
本文介绍了Outlook Web加载项:更改嵌入式浏览器并打开您选择的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Outlook Web加载项.我猜想Microsoft使用的是嵌入在Outlook 2016桌面客户端中的Internet Explorer 11.是否可以将其更改为其他浏览器,例如Chrome.

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.

我还使用JavaScript(window.open)打开了一个新浏览器,该浏览器又是Internet Explorer11.在这种情况下,我也想更改浏览器,例如铬合金.

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.

推荐答案

第一个问题的答案-您无法更改Outlook桌面中加载了插件的浏览器.

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

第二个问题的答案-如果您尝试打开在appDomains(清单中)中指定的url,则它将在IE中打开以允许通讯返回到插件.如果您只想打开不需要与该插件通讯且未在您的应用程序域中指定的任何随机网址,那么它将在默认浏览器(由用户为设备设置)中打开.

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).

对于要在新窗口和插件之间进行通信的情况,我们建议使用displayDialogAsync API而不是window.open.您可以在此处找到有关此文档的文档:

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

这篇关于Outlook Web加载项:更改嵌入式浏览器并打开您选择的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆