Closed Bug 30396 Opened 24 years ago Closed 24 years ago

Version number reporting (client sniffer)

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 30602

People

(Reporter: janjaap, Assigned: vidur)

References

()

Details

this code reports the wrong version number:

if ((navigator.appName.indexOf('Netscape') != -1) &&
    (navigator.appVersion.substr(0, 1) > 3)) {
  document.write(' ');
}
else if ((navigator.appName.indexOf('Microsoft') != -1) &&
    (navigator.appVersion.substr(0, 1) > 3)) {
  document.write(' ');
  }
else
  {
  document.write('Not a version 4 browser');
}

thanks
JanJaap
Guessing that the problem here is that 'Netscape' does not appear in
navigator.appName.indexOf since you must have been testing a Mozilla,
not a Netscape, browser.

janjaap@x-stream.nl, what version of mozilla were you trying?

Check the resources at http://sites.netscape.net/ekrock/answers.html#areyouready
-- a Nav5/IE5-ready client sniffer is available there.
Assignee: rickg → vidur
Component: HTML Element → DOM Level 0
QA Contact: petersen → desale
Summary: Version number reporting → Version number reporting (client sniffer)
That should be changed back soon.

*** This bug has been marked as a duplicate of 30602 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Is this a duplicate? Bug 30602 concerns the commercial Netscape build. This 
concerns the Mozilla builds.
Verified duplicate.
Status: RESOLVED → VERIFIED
Mass removing self from CC list.
Now I feel sumb because I have to add back. Sorry for the spam.
You need to log in before you can comment on or make changes to this bug.