#8: Browser Redirect script Dynamic Drive

With various versions of both NS and IE actively in use right now, one way to ensure your web site is compatible with all of them is to redirect visitors to different pages, depending on his/her browser type. This script does just that, by screening for NS4, IE4+, NS6 and neither, and redirecting to four different pages accordingly.

Demonstration

N/A

IE4+ NS4 NS6

To download...

Copy the below code (highlight it, and press Ctrl+C), and follow the inline comments to paste the appropriate snippets into your webpage:

Additional comments

You would add the above script in a blank page, and save it as your main index page (ie: index.html). This way, when visitors hit this page, they will be redirected according to their browser. Be sure to change the containing URLs to your own.

Product of Dynamic Drive Copyright © 2002. Please see usage terms for acceptable use