在特定的浏览器中打开链接 [英] Open a link in a specific browser

查看:282
本文介绍了在特定的浏览器中打开链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以在所有浏览器上运行的Web应用程序,但是有一个指向只能在Internet Explorer中运行的另一个应用程序的链接.当我的应用程序在其他浏览器(例如chrome)中运行时,如何强制浏览器在新的IE浏览器中打开此链接?这段代码应该写在服务器端还是客户端?

I have a web application which runs on all browsers but there is a link to another application which can only run in Internet Explorer. How I can force browser to open this link in a new IE browser when my application running in other browsers such as chrome? Should this piece of code written in server side or client side?

推荐答案

您不能像要求的那样强制客户端启动其他浏览器.

You can't force the client to launch a different browser like you're asking.

我建议您在启动应用程序时对其进行测试,以查看其当前是否在IE中运行.如果不是,它将发出一条错误消息,说明:此应用程序需要Internet Explorer.请在IE中重新打开."然后让它停在那里.

What I would suggest is to have your application test when it is launched to see if it is currently running in IE. If it isn't, it should issue an error message stating something like: "This application requires Internet Explorer. Please reopen in IE." Then have it stop there.

这篇关于在特定的浏览器中打开链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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