Website Design Above the Rest
Web Developer Website Design stumbleupon Website Design digg Website Design Facebook

The Blog

Blog Categories

Help End Internet Explorer With Jquery

End the torture and abuse from Internet Explorer and Microsoft

Kill Internet ExplorerInternet Explorer, otherwise known as Internet Exploder, has been a royal pain in the butt over the years. After all of the torture and abuse from Microsoft, it is time to put this browser to rest. There has been many attempts at this over the years, none of which have finished the job. 

The statistics show how the browser has steadily lost its user base over the years. We have finally gotten IE down below 20%, but now its time to finish it off with this little jquery snippet.

Heres how it works

If the visitor is using Internet Explorer, they will get a dialog box asking them to "Stop using Internet Exploder and get a real web browser!", If the user clicks OK, they are redirected to Google Chrome.

With enough web designers and developers using this on their websites, we could put and end to the Internet abuse and torture!

If only google would implement this...

<!--[IF IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            // By Ryan Knol
            // http://www.Web-Mountain.com
            if(confirm('Stop using Internet Exploder and get a real Web Browser!')){
            window.location.href("https://www.google.com/chrome");
            }
            return false;
        });
    </script>
<![endif]-->

Another option would be to keep track if a user has already clicked cancel. This way we don't annoy them more then IE already does.

<!--[IF IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
// By Ryan Knol
// http://www.Web-Mountain.com
if (document.cookie.indexOf("iechecker") == -1){
if(confirm('Stop using Internet Exploder, Get a real Web Browser!')){
window.location.href("https://www.google.com/chrome");
} else {
document.cookie = "iechecker=yes;max-age=" + 60 * 60;
return false;
}
}
});
</script>
<![endif]-->