I have included the following in the < head > content of my php page:
<script>
if ($.browser.msie && parseInt($.browser.version) < 10)
{
console.log('You need v10 of IE or greater to use this app');
alert("You are using an outdated browser and will be redirected");
window.location.href = 'error.php';
}
</script>
I basically want every visitor using Microsoft Internet Explorer 9 or below to go to the error.php page which states I want them to install version 10.
The problem that I am faciing is that this doesn't work unless I go to the developer part and instantiate the compatability features mimicking version 7, 8 and 9 when it then does work - merely going to my website with an old version it just loads up and not displaying the message / redirect...
Does anyone have any ideas or is it my code that is wrong? Thanks for looking.