从活动选项卡中的扩展弹出窗口打开链接。 [英] Opening links from the extension popup in the active tab.

查看:88
本文介绍了从活动选项卡中的扩展弹出窗口打开链接。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个带有弹出窗口的扩展程序,其中包含一些导航快捷方式。

I'm creating an extension with a popup that has some shortcuts for navigation.

例如,如果我有弹出窗口的内容;

If I have, for example, the contents of the popup being;

<a href="bing.com">Click here to open bing</a>

这将在新页面中加载bing而不是弹出窗口处于活动状态的当前选项卡。

This will load bing in a new page rather than the current tab that the popup is active over.

如何解决此问题?

提前致谢:)

推荐答案

嗨  EdgeDeveloper

我尝试使用您的示例扩展程序进行多次测试。

I try to make a several test with your sample extension.

以下是测试结果。

进行测试后,我认为这是Edge在新标签页中打开链接的默认行为该链接位于扩展名内。

After making tests, I think that this is the default behavior of the Edge to open the link in a new tab if the link is placed inside an extension.

Target = _self也不会像普通的HTML页面一样在这里工作。

Target=_self will also not work here like normal HTML page.

你的addListener句柄也无法更正此问题。 

Your addListener handle also not able to correct this issue. 

目前,我没有解决此问题。

At present, I did not get any work around for this issue.

我会通知你,如果我愿意的话找到有关此问题的任何有用信息。

I will inform you, If I will find any useful information for this issue.

感谢您的理解。

问候

Deepak





这篇关于从活动选项卡中的扩展弹出窗口打开链接。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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