Browser detection

Results 1 to 2 of 2

Thread: Browser detection

  1. #1
    Join Date
    Dec 1969

    Default Browser detection

    I have detected netscape browsers and given a message to use IE, but I do not want the rest of the page to continue to load in netscape how do I tell it if it is netscape navigator leave this message and do not load the rest of the page? Here is what I have so far.<BR>&#060;SCRIPT LANGUAGE=JAVASCRIPT<BR> TYPE="TEXT/JAVASCRIPT"&#062;<BR>&#060;!-- Hide script from older browsers<BR><BR> if (navigator.appName == "Netscape"){<BR> document.write ("Please use Internet Explorer for this Quiz")<BR> }<BR><BR>// End hiding script from older browsers --&#062;<BR>&#060;/Script&#062;<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Browser detection

    You could use:<BR>location.href=&#039sorrynetscapeusers.htm& #039<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts