通过URL调用特定的浏览器 [英] Invoke a specific browser by URL

查看:478
本文介绍了通过URL调用特定的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个特定的URL链接,而我的默认浏览器是Safari。无论如何,可以通过Chrome而不是默认浏览器通过在URL中传递一些参数来以其他方式打开该URL?请注意,我不想将默认浏览器更改为Chrome。

Let's say I have a specific URL link and my default browser is Safari. Is there anyway for that URL to be opened using Chrome instead of the default browser by passing some parameter in the URL or any other way? Note that I do NOT want to change the default browser to Chrome.

推荐答案

解决此问题的一般方法是询问, 如何使用特定的URL启动Chrome?在我的计算机上尝试使用此命令行

The general way to solve this problem is to ask, "How can I launch Chrome with a specific URL?" Trying this on my machine, the command line

chrome http://stackoverflow.com

做到了。因此,您只需要:

does it. So, you just need to:


  • 在用户计算机上找到 chrome.exe

  • 使用要加载的URL的命令行参数启动Chrome

更新:重新阅读您的问题后,我发现用户正在Safari中浏览,并且想要单击Safari中的链接 并打开Chrome。不,没有任何方法可以通过更改HTML来实现。我的上述答案适用于希望使用特定URL启动Chrome的桌面程序。

UPDATE: Upon rereading your question, I see that the user is browsing in Safari and wants to click on a link in Safari and open Chrome. No, there isn't any way to do this just by changing the HTML. My above answer would apply to a desktop program that wants to launch Chrome with a specific URL.

这篇关于通过URL调用特定的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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