Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

browser detection with autoloading

Posted on 1997-05-05
1
Medium Priority
?
214 Views
Last Modified: 2010-04-16
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
0
Comment
Question by:oburgis
1 Comment
 

Accepted Solution

by:
Bill_Mair earned 200 total points
ID: 1220115
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question