简体   繁体   English

用于在Chrome浏览器中打开文件://链接的HTML代码默认使用Chrome扩展程序“在IE中打开”

[英]html code to open a file:// link in chrome browser that uses the chrome extension “open in IE” by default

Assuming everybody uses chrome browser; 假设每个人都使用Chrome浏览器;

So I am creating a wordpress blog for some friends. 所以我正在为一些朋友创建一个wordpress博客。 We use a shared network, and I want to create a link on that blog that when pressed opens up a folder in internet explorer. 我们使用共享网络,我想在该博客上创建一个链接,按下时会在Internet Explorer中打开一个文件夹。

The current html code is 目前的HTML代码是

I am using a chrome extension called "open in IE" , but to use it requires a right click then choosing an option within the menu. 我正在使用名为“在IE中打开”的Chrome扩展程序,但要使用它需要右键单击然后在菜单中选择一个选项。 This process is too long and I want to simplify it. 这个过程太长了,我想简化它。

Is there any html code I can write that make it open that file:// link using the "open in IE" extension by default? 是否有任何我可以编写的HTML代码使其打开文件://链接默认使用“在IE中打开”扩展名? The goal is to be able to left click the link in chrome and have a window explorer open with the files in it. 目标是能够左键单击chrome中的链接并打开一个窗口浏览器,其中包含文件。

Cheers 干杯

Unfortunately, targetting a specific browser to open on a clicked link is not possible. 遗憾的是,无法针对特定浏览器在点击的链接上打开。

Unless you modified some of their internal registry or used an activex plugin, it is just not a supported feature at this time. 除非您修改了一些内部注册表或使用了activex插件,否则目前它不是受支持的功能。

You will most likely need to hard code some javascript. 你很可能需要硬编码一些javascript。

I believe it is possible to reference installed extensions from your code using chrome.extensions. 我相信可以使用chrome.extensions从您的代码中引用已安装的扩展。

Reference here, http://developer.chrome.com/extensions/extension.html 请参考http://developer.chrome.com/extensions/extension.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM