Skip to content

A few lines of code to display a Message if visitor is using old IE.

Notifications You must be signed in to change notification settings

easy-bios/reactCatchInternetExplorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

reactCatchInternetExplorer

A few lines of code to display a Message if visitor is using old IE.

All you need is the Script-Block in the index.html
Just copy it into your /public/index.html into the body and customize the message.

<script>
    var ieMode = window.document.documentMode;
    if (ieMode) {
        console.log('ieMode: ', ieMode);
        var userMessage = document.createElement('h3');
        userMessage.innerHTML = 'Browser is not supportet.';
        document.body.appendChild(userMessage);
    }
</script>

About

A few lines of code to display a Message if visitor is using old IE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages