Redirect user depending on browser
<html> <head> <script type="text/javascript"> function redirectme(){ bname=navigator.appName if (bname.indexOf("Netscape")!=-1) { window.location="http://www.java2s.com" return } if (bname.indexOf("Microsoft")!=-1) { window.location="http://www.java2s.com" return } window.location="http://www.java2s.com" } </script> </head> <body onload="redirectme()"> </body> </html>