Solved

browser detection with autoloading

Posted on 1997-05-05
1
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Bill_Mair earned 100 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

695 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