Contents Home Page Previous Page Next Page

Redirecting Version 4 Browsers

If you have Dynamic HTML on your site you may wish to make a set of pages specifically for version 4.0 and later browsers. This simple script redirects version 4.0 and later browsers to a different page.

Important: The script is given below. If you are using a browser that will be redirected, copy the code before clicking on the link below.

<script language="JavaScript" type="text/javascript">
<!-- // 1997 Amos Youren // kb8vmb@superior.iceware.com // http://www.iceware.com/~kb8vmb/ // You can exclude this useless info if you want. // I hate when people require it. // --> function choose() { BrowVer = parseInt(navigator.appVersion); if (BrowVer >= 4) { location.href = "4redirect4.htm"; } else { location.href = "4redirect2.htm"; } } </script>

You should also add onLoad="choose()" to the <BODY> tag.

Use this link to try out the script.