0

I am working on a MVC application that needs to open a specific URL in Internet Explorer. It works fine when the user is using IE but if the user is using Chrome or Mozilla, window.open uses that browser, as expected since it is most likely the default browser.

Is there any way to force window.open to use IE? The page has to be opened in IE and isn't an option to use another browser.

If there isn't any way to do it using window.open, then is it possible to do another way?

Xerc
  • 135
  • 2
  • 16
  • 3
    window.open will always open a window of the same browser. There is no way, from chrome you can open up ie or vice verse. – Sarbbottam Dec 12 '14 at 00:25
  • Faced a similar problem. Found this as the answer. https://stackoverflow.com/questions/40531374/open-internet-explorer-from-chrome-using-a-protocol-handler-ieurl/41749105#41749105 – Murtaza Haji Nov 02 '18 at 19:48
  • Regardless of the purpose, just don't. – paulo.filip3 Nov 16 '18 at 20:39

3 Answers3

1

It's called registering an application to a URI scheme think you probably need to rethink the behavior of the app

0

If you dont want to open it in new tab then you can use windows.location.href("url").

codeLover
  • 2,571
  • 1
  • 11
  • 27
0

No, you cannot do this because that means you are in control of the user's device. There is no way to do this from the browser.

Rob
  • 14,746
  • 28
  • 47
  • 65