Created
April 29, 2019 21:50
-
-
Save pixelpylon/40cef6ff768347df1e75ca7da16ea9e0 to your computer and use it in GitHub Desktop.
check if browser is ie and alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function ie() { | |
var ua = navigator.userAgent; | |
if (ua.indexOf("Trident") > -1) { | |
message = "Welcome to our Site! It seems that you are using Internet Explorer. Time to switch."; | |
alert(message); | |
} | |
} | |
setTimeout(ie,3600); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment