Xerc
Xerc

Reputation: 155

window.open from Chrome to IE

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?

Upvotes: 0

Views: 2778

Answers (3)

nikhil kandalkar
nikhil kandalkar

Reputation: 181

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

Upvotes: 0

Rob
Rob

Reputation: 15150

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.

Upvotes: 0

Hichem ben chaabene
Hichem ben chaabene

Reputation: 145

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

Upvotes: 1

Related Questions