admin管理员组文章数量:1391995
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?
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?
Share Improve this question edited Sep 7, 2015 at 4:03 Universal Electricity 7751 gold badge13 silver badges26 bronze badges asked Sep 7, 2015 at 3:52 MahmoudMahmoud 8837 silver badges17 bronze badges 2- So anyone not using windows can't access what is on this link? What about Microsoft Edge? – Jon P Commented Sep 7, 2015 at 4:19
-
In the client-side you can use the this code.
window.open("microsoft-edge:https://www.google.");
– Prince Painadath Jose Commented Sep 23, 2023 at 9:57
2 Answers
Reset to default 4You can't force the client to launch a different browser like you're asking.
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.
Most probably, using resources of JavaScript and HTML5, you cannot run applications on end user's puter. Moreover, it sounds incorrect in terms of security and usability.
The best thing you can do is to write a message like "Open this link in IE" near your link.
At the final page, you can detect a user's browser and, in case it is not an IE, show him a message "Unfortunately, this web-page works only with IE. Please, open it in IE".
By the way, could you tell us, why your page is not working in other browsers? Probably, we will find a proper answer there.
本文标签: javascriptOpen a link in a specific browserStack Overflow
版权声明:本文标题:javascript - Open a link in a specific browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744661727a2618285.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论