Mailinglist Archive: opensuse (3675 mails)

< Previous Next >
Re: [SLE] Browser identification
  • From: Joshua Lee <edlin@xxxxxxxxxxxxx>
  • Date: Fri, 4 Jan 2002 14:26:50 -0500
  • Message-id: <MOCHA1pEVmkWFBXZGYm000005ed@xxxxxxxxxxxxxxxxxx>
On Wednesday 02 January 2002 08:09 pm, Alexandr Malusek wrote:
> Ben Rosenberg <ben@xxxxxxxxx> writes:
> > This will over rule the default user agent string for Mozilla. And yes
[...]
> I've managed to download the page source code. It contains the
> following definitions:
>
> <script language="JavaScript">
>
> var ns = (document.layers)? true:false
> var ie = (document.all)? true:false

Ugh. Instead of checking the user agent they check to see what propritary
extentions are available, IE's or NS4's. Pages like this can't work with NS6,
Mozilla, and other browsers because they are standards complient so they
neither have NS4's layers nor IE's document.all. The Linux answer for this is
to run Netscape 4 for this webpage, if you have a strong stomach. ;-) Also
try running with javascript turned off with your favorite browser, sometimes
that helps...

< Previous Next >