Skip to content

Instantly share code, notes, and snippets.

@pixelpylon
Created April 29, 2019 21:50
Show Gist options
  • Save pixelpylon/40cef6ff768347df1e75ca7da16ea9e0 to your computer and use it in GitHub Desktop.
Save pixelpylon/40cef6ff768347df1e75ca7da16ea9e0 to your computer and use it in GitHub Desktop.
check if browser is ie and alert
<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