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
Add a ment  | 

2 Answers 2

Reset to default 4

You 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