These two scripts show how to detect Mozilla Firefox and redirect visitors to different web pages. The first script redirects all non-Firefox users to the Firefox download page. The second script is a general browser redirect that can detect with Firefox, Netscape or Internet Explorer.
This script sends the viewer to the right page depending on the type of browser being used. If the browser is NS, it goes to an NS version of the page. If it is IE, it goes to an IE version of the page. Otherwise, the viewer goes to a page for other browsers.
This script sends the viewer to the right page depending on the type and version of the browser being used. If the browser is NS or IE, version 4 or better, the viewer is taken to a page for version 4 browsers. Otherwise, the viewer goes to a page for lower version browsers.
This script loads a page based on the browser being used. It detects: Netscape 3.x, Netscape 4.x, Netscape 5.x, Microsoft 3.x, Microsoft 4.x and Microsoft 5.x.
If you maintain separate pages for Netscape and Internet Explorer browsers and want to additionally divide each browser's page into version pages, this script is for you. The script will create a link (or can be changed to automatically redirect) to browser[version number].html. (For example, a visitor with Netscape 4.5 would see a link to netscape4.html)
If Java is enabled in the visitor's browser, they are redirected to a Java-enhanced page. Otherwise, if Java is disabled they are sent to the non-java page.
If you maintain a different page for Microsoft Internet Explorer and another for Netscape browsers, you should use this script. Quite simply,it sends the right browser to the right browser-optimized page.