set a browser name and redirected link

<html>
   <head>
 
      <script type="text/javascript">
         <!--
            var browsername=navigator.appName;
            if( browsername == "Netscape" )
            {
               window.location="http://www.google.com";
            }
            else if ( browsername =="Microsoft Internet Explorer")
            {
               window.location="http://www.yahoo.com";
            }
            else
            {
               window.location="http://www.arenanagpur.com";
            }
         //-->
      </script>
     
   </head>
 
   <body>
   </body>
</html>

Comments

Popular posts from this blog

Set the variables to different values and different operators and then try...

auto redirected page in java script