title: How do I redirect my client to a different page according to their browser?
body: <p>I have found some HTML code online to help me do this, but it does not work when I try it on Firefox or Internet Explorer. Could I have some help to try and achieve this?</p>
  
  <p>Here is the code I found</p>
  
  <pre><code>    &lt;script language="JavaScript" type="text/JavaScript"&gt;
      if(navigator.appName == "Mozilla")
      {
       window.location = "ff/index.html"
      }
       if(navigator.appName == "Microsoft Internet Explorer")
      {
       window.location = "ie/index.html"
      }
       if(navigator.appName == "Google Chrome")
      {
       window.location = "ch/index.html"
      }
       if(navigator.appName == "Safari")
      {
       window.location = "sa/index.html"
      }
       if(navigator.appName == "Google Chrome")
      {
       window.location = "ch/index.html"
      }
       window.location == "un/index.html"
      &lt;/script&gt;
  </code></pre>