Reputation: 11
I added a this code to the header to redirect IE user using IE 10 or less
<!--[if lt IE 10]><meta http-equiv="refresh" content="0;url=/outdated_browser"><style> body { display:none; } </style><![endif]-->
The problem is that my page is loading some scripts causing internet explorer to crash, my question is, is there any way to stop all the scripts from loading for those users and automatically redirect them to the update you browser page?
Thanks in advance for any help!
Upvotes: 0
Views: 821
Reputation: 611
That will cover the effect you want by redirecting them before the scripts run, but I'm with RobG on the fact that those scripts should be prioritized and fixed. This should be put ahead of any of the scripts you load in the page so that the redirect is prioritized.
<!--[if lt IE 10]>
<script type="text/javascript">
window.location = "YOUR LINK HERE";
</script>
<![endif]-->
Upvotes: 1