如何在Word插件中设置默认浏览器 [英] How to set the default browser in word addin

查看:789
本文介绍了如何在Word插件中设置默认浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于我们在HTML页面的add(例如Home.html)一词中具有以下超链接:

Given that we have the below hyperlink in the word add in HTML page (e.g. Home.html):

<a href="www.google.com" target="_blank">Go to google</a>

点击转到Google"会在Word加载项之外使用Internet Explorer打开www.google.com.

Clicking on "Go to google" opens www.google.com using Internet Explorer outside the Word add-in.

问题是默认浏览器设置为Google Chrome,我们希望使用用户设置的默认浏览器打开所有外部链接.

The problem is the default browser is set to Google Chrome and we wish to open all the external links using the default browser set by the user.

我们如何实现这一目标?

How can we achieve this?

推荐答案

正如Marc指出的那样,今天不可能.话虽这么说,正在开发一个 可以做到这一点的API.我无法评论时间,但现在很快".我建议您在几周后对此线程执行ping操作,然后可能会有更多信息要分享.

As Marc points out, it’s not possible today. That being said, there is an API being developed that will do just that. I can’t comment on the timing yet, but it is "soon". I recommend you ping this thread in a few weeks, and there may be more info to share.

这篇关于如何在Word插件中设置默认浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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