Redirect Old Browser

[Total: 0    Average: 0/5]

This shows how to check the browser version number to see if the browser is an old one… and if it is, it sets the document.location to the proper URL for this out of date browser…

Body Code:

<script type=text/javascript>
if (parseInt(navigator.appVersion) < 4) 
  document.location = "http://www.js-examples.com/";
</script>
<noscript>
<a href="http://www.js-examples.com/">You have an old browser<BR>Click Here to continue</a>
</noscript>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *