Mega Code Archive

 
Categories / JavaScript DHTML / HTML
 

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.rntsoft.com"       return   }     if (bname.indexOf("Microsoft")!=-1)  {       window.location="http://www.rntsoft.com"       return   }     window.location="http://www.rntsoft.com" } </script> </head> <body onload="redirectme()"> </body> </html>