Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Web Page to not open in IE
Message
From
10/10/2022 04:27:53
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01685064
Message ID:
01685070
Views:
60
>>>Perhaps someone can help me. I have an app (built it back in 2022 and update it a few times a year) that opens a Web Page from my site upon app startup and remains in the background. Now that IE has been retired, I would like to force this to never open in IE as link's to click on the page do work correctly in IE (such as PayPal, etc.).
>>>
>>>Is there anyway to include some kind of code here, or perhaps in the web page that would stop IE from being used?
>>>
>>>This is the partial code I borrowed from UT many years ago - as seen in the following.
>>
>>Somewhere in the page's javascript code, check the navigator object, and its properties. Look it up https://stackoverflow.com/questions/2400935/browser-detection-in-javascript (or do your own search on “javascript detect browser“. The DOM of a webpage is very rich nowadays, and you'll probably find anything, except 1) exactly what you want 2) twice.
>
>Thank you.... looks good.

Guess you want to block those links working in IE.
In that case, keep in mind that MS created a "IE-sham" layer for Edge,
allowing even Chromium-based new versions to reuse most (if not all)
of the previous COM automation.
Might need guarding against such Chimeras like Chromium with activated IE-Sham.

regards
thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform