Redirect Based on Browser

Home

This script will redirect based on browser version. Note that for Netscape 6 the value of "browser" will be "NS5".

<script type="text/javascript">
version=parseInt(navigator.appVersion);
if (navigator.appVersion.indexOf('5.')>-1){version=5}; browser='OTHER';
if (navigator.appName=='Netscape'){browser='NS'+version;}
if (navigator.appName=='Microsoft Internet Explorer'){browser='MSIE'+version;}
if (navigator.appVersion.indexOf('MSIE 3')>0) {browser='MSIE3';}
if (browser=='OTHER') {window.location='http://www.yourdomain.com/somepage0.htm'}
if (browser=='NS3') {window.location='http://www.yourdomain.com/somepage1.htm'}
if (browser=='NS4') {window.location='http://www.yourdomain.com/somepage2.htm'}
if (browser=='NS5') {window.location='http://www.yourdomain.com/somepage3.htm'}
if (browser=='MSIE3') {window.location='http://www.yourdomain.com/somepage4.htm'}
if (browser=='MSIE4') {window.location='http://www.yourdomain.com/somepage5.htm'}
if (browser=='MSIE5') {window.location='http://www.yourdomain.com/somepage6.htm'}
</script>