0

I have a requirement in which when a user clicks on an URL in Chrome, the link should open in IE.

Any ideas how to achieve this using jquery or javascript??

Thanks

bharath
  • 21
  • 1
  • 6
  • 1
    I don't think you can do this in Javascript. It can't run other applications. – Barmar Jul 31 '15 at 08:02
  • What if the user doesn't have IE? – Barmar Jul 31 '15 at 08:03
  • any other work arounds? – bharath Jul 31 '15 at 08:03
  • Its a given that user has IE – bharath Jul 31 '15 at 08:04
  • What kind of requirement is that? Why do you want this? – putvande Jul 31 '15 at 08:05
  • You can write a chrome extension and a chrome native messaging host. – Robby Cornelissen Jul 31 '15 at 08:05
  • The only workaround is to have another protocol like, "openApp:iexplorer.exe http://yourwebsite.com", similar to how skype has "skype:phone-number". That would work for users that have your application installed. – Dave Chen Jul 31 '15 at 08:06
  • 1
    If your link only works in IE (I assume that's why it has to be opened in IE), and it's a given that your users will definitely have IE (so, presumably, some sort of company-specific application), why not just tell them they have to use IE? – Anthony Grist Jul 31 '15 at 08:08
  • The link opens a third party application that works only in IE with active X. Our company-specific Application is Siebel Open UI intended to use in Chrome. so its complicated like that – bharath Jul 31 '15 at 08:13
  • @DaveChen Can you please tell me how to use protocol like, "openApp:iexplorer.exe yourwebsite.com"? – bharath Jul 31 '15 at 08:18
  • @bharath Have you tried the ietab2 extension? Seems like a better option. The protocol works in the same way skype would work. An extension. So just go with the ietab2. – Dave Chen Jul 31 '15 at 08:20

2 Answers2

1

You can't do this with vanilla JavaScript.

Update: Yes, there's a workaround, which will work only for browsers with IETab extension installed. That way, you can force your links to something like this:

chrome://ietab2/content/reloaded.html?url=http://example.com

That way the http://example.com will be run using IE engine.

Kristian Vitozev
  • 5,791
  • 6
  • 36
  • 56
0

I don't think you can use jquery or js to change the behavior of windows's default applications, for instance if their default browser is chrome then your url will open in chrome

Erik Thiart
  • 381
  • 6
  • 17