Internet Explorer not supported warning?

Hi Wappler Community,

I was wondering if there is a “Wappler way” of displaying a separate page for unsupported browsers. In my case, I would like to display some simple HTML for any version of Internet Explorer. I’ve tried using conditionals to check for IE specific things such as window.document.documentMode but I can’t get it to work. Even in IE, window.document.documentMode seems to be undefined when I use it in Wappler. Same with browser.document.documentMode.

Any suggestions?

Since 1/12/16, Microsoft no longer provides security updates or technical support for Internet Explorer.

This makes me think that it is futile to cater for IE.

1 Like

Yes, that is exactly why I want to display a message saying something like:

<my website> does not support your browser please use Edge or download <Chrome, Firefox, etc.> to use <my website>

I just don't want my clients to display a completely broken website should they use IE.

Above stackoverflow contains a lot of different code sample on how to detect IE.

Add a Browser component with an ID of browser1 and finish up with the code below.

<p dmx-show="browser1.userAgent.contains('MSIE') || browser1.userAgent.contains('Trident/')">Please use a different browser</p>

To add to Ben’s great answer, you can setup a page level auto-run flow. Inside that, add a condtion same as suggested by Ben.
Then, in true part, you can use bootbox to show a good looking prompt with custom message.

1 Like

Went with the simple solution from @ben, thank you very much everyone for the detailed replies!