Reputation: 155
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
Reputation: 181
If you dont want to open it in new tab then you can use windows.location.href("url")
.
Upvotes: 0
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
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