browser detection with autoloading

hi !

i am currently working on my website and would need a small java script,
which detects the visitors browser (just needs to differ between netscape
and internet explorer) and than automatically loads a different side for
each of the two browsers. all other browsers (that can be recogniced) should load the internet explorer page, too.
can someone help me on that problem, since i can't program java.

i would really appreciate any help

thanks in advance

oliver burgis
oburgisAsked:
Who is Participating?
 
Bill_MairConnect With a Mentor Commented:
Here's how:

<SCRIPT LANGUAGE="JavaScript">
  <!-- Hide the code from all well-behaved non-JS browsers
  if( navigator.appName == "Netscape" )
  {
    location = 'http://www.bm-soft.com'
  }
  else
  if( navigator.appName == "Microsoft Internet Explorer" )
  {
    location = 'http://www.softwarezentrum.de'
  }
  else
  {
    location = 'http://www.bm-soft.com'
  }
  // Unhide. -->
</SCRIPT>


OK ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.