如何在Internet Explorer中添加自定义工具栏按钮?

时间:2023-01-19 16:44:36

How can I add a simple toolbar button to IE that gets the current url and redirect to another url?

如何在IE中添加一个简单的工具栏按钮,获取当前网址并重定向到另一个网址?

2 个解决方案

#1


#2


If you don't want to get deep into all the IE extension stuff, you could go with a bookmarklet and just use javascript to get the same behaviour you are looking for:

如果您不想深入了解所有IE扩展程序的内容,您可以使用bookmarklet并使用javascript来获得您正在寻找的相同行为:

javascript:if(location.href="http://www.google.com"){ location.href="http://www.yahoo.com"}

This also has the advantage working on many different browsers.

这也具有在许多不同浏览器上工作的优点。

Bookmarklet Info

#1


#2


If you don't want to get deep into all the IE extension stuff, you could go with a bookmarklet and just use javascript to get the same behaviour you are looking for:

如果您不想深入了解所有IE扩展程序的内容,您可以使用bookmarklet并使用javascript来获得您正在寻找的相同行为:

javascript:if(location.href="http://www.google.com"){ location.href="http://www.yahoo.com"}

This also has the advantage working on many different browsers.

这也具有在许多不同浏览器上工作的优点。

Bookmarklet Info