473,695 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mozilla and Netscape

I have a page up trying to learn how to ID a browser and other info.

http://wyght.com/warren/testPos.html

here is the code
<script type = "text/javascript">
var space = ", ";
var name = navigator.appNa me;
var codename = navigator.appCo deName;
var version = navigator.appVe rsion.substring (0,4);
var platform = navigator.platf orm;
var MyjavaEnabled = navigator.javaE nabled();
var screenWidth = screen.width;
var screenHeight = screen.height;

document.writel n("<BR>"+name+s pace+codename+s pace+"<BR>");
document.writel n("<BR>"+versio n+space+platfor m+space+"<BR>") ;
document.writel n("<BR>"+Myjava Enabled+"<BR>"+ screenWidth+spa ce+"<BR>");
document.writel n("<BR>"+screen Height+space+"< BR>");
</script>

I can see no way of knowing if it is a firefox or netscape browser is that
posible?

Also, when I print out the var "codename" in IE 6 it says Mozilla. What is
up with that?

--

Totus possum, totum Deum.
Totus ero, totum meum.
WSW
Feb 6 '06 #1
10 2367
News wrote:
I have a page up trying to learn how to ID a browser and other info.
Except for (not very accurate) statistical gathering purposes, this
information shouldn't be of any practical use to you. If you are planning
to branch JavaScript based on what different browsers are capable of, then
you should look at the much more reliable object detection.
http://www.quirksmode.org/js/support.html
I can see no way of knowing if it is a firefox or netscape browser is that
posible?
Not reliably. These days there is little to choose between them anyway.
Also, when I print out the var "codename" in IE 6 it says Mozilla. What is
up with that?


Netscape had better JavaScript support then IE. People wrote scripts to
detect this. Microsoft brought out a new version of IE with better
JavaScript support and stuck Mozilla in the agent string so that those
scripts wouldn't ignore IE.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 6 '06 #2
News said the following on 2/6/2006 4:59 PM:
I have a page up trying to learn how to ID a browser and other info.
Unless it is a purely academical exercise it is a waste of time.
http://wyght.com/warren/testPos.html
Error:
BrowserInfo is undefined

here is the code
That is not the code you have on the page you gave the URL to.

<script type = "text/javascript">
var space = ", ";
var name = navigator.appNa me;
var codename = navigator.appCo deName;
var version = navigator.appVe rsion.substring (0,4);
var platform = navigator.platf orm;
var MyjavaEnabled = navigator.javaE nabled();
var screenWidth = screen.width;
var screenHeight = screen.height;

document.writel n("<BR>"+name+s pace+codename+s pace+"<BR>");
document.writel n("<BR>"+versio n+space+platfor m+space+"<BR>") ;
document.writel n("<BR>"+Myjava Enabled+"<BR>"+ screenWidth+spa ce+"<BR>");
document.writel n("<BR>"+screen Height+space+"< BR>");
</script>

I can see no way of knowing if it is a firefox or netscape browser is that
posible?
Probably not but it shouldn't matter unless this is a purely academical
exercise.
Also, when I print out the var "codename" in IE 6 it says Mozilla. What is
up with that?


It's for people who mistakenly think that anything in the navigator
object means anything and that includes Thomas Lahn. It's useless for
anything but an academic exercise.

For what it's worth, this is what one of my browsers gives for that code:

Netscape, Mozilla,
5.0 , Win32,

What browser is it?
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 6 '06 #3
"David Dorward" <do*****@yahoo. com> wrote in message
news:ds******** ***********@new s.demon.co.uk.. .
News wrote:
I have a page up trying to learn how to ID a browser and other info.


Except for (not very accurate) statistical gathering purposes, this
information shouldn't be of any practical use to you. If you are planning
to branch JavaScript based on what different browsers are capable of, then
you should look at the much more reliable object detection.
http://www.quirksmode.org/js/support.html
I can see no way of knowing if it is a firefox or netscape browser is
that
posible?


Not reliably. These days there is little to choose between them anyway.
Also, when I print out the var "codename" in IE 6 it says Mozilla. What
is
up with that?


Netscape had better JavaScript support then IE. People wrote scripts to
detect this. Microsoft brought out a new version of IE with better
JavaScript support and stuck Mozilla in the agent string so that those
scripts wouldn't ignore IE.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Thanks that URL was helpful
Totus possum, totum Deum.
Totus ero, totum meum.
WSW
Feb 7 '06 #4
David Dorward wrote:
News wrote:
Also, when I print out the var "codename" in IE 6 it says Mozilla. What
is up with that?


Netscape had better JavaScript support then IE.


That is an interesting (false) statement, considering that IE has no
JavaScript support at all and it never had (IE supports and supported
JScript and VBScript). Maybe you meant to say that Netscape had better
ways for scripting HTML documents, while you would be confusing
programming language and AOM/DOM (unfortunately a mistake Netscape made
too until JavaScript 1.3).
PointedEars
Feb 7 '06 #5
VK

News wrote:
Also, when I print out the var "codename" in IE 6 it says Mozilla. What is
up with that?


In the beginning Tim Berners-Lee created the Web and HTTP

Then National Center for Supercomputing Applications (NSCA) created the
first GUI browser called NSCA Mosaic. And it was good ans so lasted
many years.

Then Netscape, Inc. created a much more powerful version and called it
"Mozilla". What was a play around the word "Mosaic" => "Mosaic" +
"Godzilla", thus Mosaic but having obtained the power of Godzilla. They
even created a logo with a funny little dragon.

But browser production appreared to be a very profitable no-fun
business so the next version has been already called very seriously
"Netscape Navigator". At the same time "Mozilla" has been left in the
browser ID string (which finally become a property of the navigator
object).

So deeply and truly each GUI browser is Mozilla, *including* IE. In
Help > About it still says: "Based on NCSA Mosaic."

Currently "Mozilla" word in userAgent string became equivalent of the
cross sign at the beginning of mediaeval manuscripts :-) It just shows
that authors of this particular browser remember and respect their
great ancestors.

Besides that "Mozilla" in userAgent doesn't contain any technical info;
it doesn't indicate anyhow to the current relation with Mozilla
Foundation <http://www.mozilla.org >

Feb 7 '06 #6
VK wrote:
News wrote:
Also, when I print out the var "codename" in IE 6 it says Mozilla.
What is up with that?
In the beginning Tim Berners-Lee created the Web and HTTP


And I thought that in the beginning was the word.
And the word was text/plain.[1] :)
Then National Center for Supercomputing Applications (NSCA) created the
first GUI browser called NSCA Mosaic. And it was good ans so lasted
many years.
So far, so good.
Then Netscape, Inc. created a much more powerful version and called it
"Mozilla". What was a play around the word "Mosaic" => "Mosaic" +
"Godzilla", thus Mosaic but having obtained the power of Godzilla. They
even created a logo with a funny little dragon.

But browser production appreared to be a very profitable no-fun
business so the next version has been already called very seriously
"Netscape Navigator". At the same time "Mozilla" has been left in the
browser ID string (which finally become a property of the navigator
object).


Wrong as it is. The (internal) _codename_ of Netscape's Web browser,
Netscape Navigator (and later, the Netscape Communicator suite) was
Mozilla (for the reasons you mentioned) ever since.

<URL:http://en.wikipedia.or g/wiki/Netscape_Naviga tor>

Hence the logo, navigator.userA gent and later the name of the (non-profit)
Mozilla Organization (an Open Source community with Netscape support) which
took over development of the Mozilla codebase when Netscape decided (due to
the no longer maintainable codebase produced to far) to make the Mozilla
code Open Source (resulting in releasing NN versions 6.x and 7.x as
Netscape Gecko-based, parallel to Mozilla Suite releases from mozilla.org).

Shortly after the merger with (or rather hostile takeover by) AOL/TW,
the Netscape browser division was shut down, and what was the Mozilla
Organization with many payed Netscape employees became the Mozilla
Foundation <URL:http://www.mozilla.org/> (still non-profit) led by the
hard core of ex-Netscapers. (Current Netscape browser versions [8+]
are developed by Mercurial Communications for AOL/TW and are based on
Mozilla Firefox.)

<URL:http://en.wikipedia.or g/wiki/Netscape>

Recently, with the release of Firefox 1.5, the Mozilla Foundation
produced a (commercial) subsidiary named Mozilla Corporation
(<URL:http://www.mozilla.com/>) to "[oversee] the development and
distribution of Mozilla technologies and products, including the
popular and award-winning Firefox Web browser and Thunderbird email
client."
PointedEars
___________
[1] <URL:http://www.rfc-editor.org/rfc/rfc1.txt>
Feb 7 '06 #7
VK
> VK wrote:
Then National Center for Supercomputing Applications (NSCA) created the
first GUI browser called NSCA Mosaic. And it was good ans so lasted
many years.
Thomas 'PointedEars' Lahn wrote:
So far, so good.


Actually not as good as it should. I did not mention other GUI web
browsers created mainly in different universities, some of which were
rather good for that time. The history did not preserve their names but
they were :-) I may look in old brochures for details. So NSCA Mosaic
was *not* the first GUI browser, but it was the *first milestone* in
web-browsers evolution. Browsing history, bookmark collection, link
underlining (still optional) etc. etc.

The rest can go by your text. I see your variant is more Mozilla
Foundation - centric imitating a "corporate success history" article
style :-)
I don't see a reason to make it bitter though.

Feb 7 '06 #8
VK wrote:
VK wrote:
> Then National Center for Supercomputing Applications (NSCA) created the
> first GUI browser called NSCA Mosaic. And it was good ans so lasted
> many years.
Thomas 'PointedEars' Lahn wrote:


Learn to quote. NOW.
So far, so good.


[...]
The rest can go by your text. I see your variant is more Mozilla
Foundation - centric imitating a "corporate success history" article
style :-)
I don't see a reason to make it bitter though.


If you think it was, so be it. I have no problem pointing out that despite
all obstacles the Mozilla project is still going strong -- I welcome that.

However, this section of my article was rather intended to point out the
connection between Netscape, Mozilla and the Mozilla Organization /
Foundation / Corporation which you told it did not exist.
PointedEars
Feb 7 '06 #9
Thomas 'PointedEars' Lahn said the following on 2/7/2006 2:24 AM:
David Dorward wrote:
News wrote:
Also, when I print out the var "codename" in IE 6 it says Mozilla. What
is up with that? Netscape had better JavaScript support then IE.


That is an interesting (false) statement, considering that IE has no
JavaScript support at all and it never had (IE supports and supported
JScript and VBScript).


Then how can the statement be false? It reads, with your pedantic
interpretation, as something along the lines of:

Netscape had better JavaScript support than a browser that didn't have
JavaScript support.

And that statement is *true*.

But, just to pedant your pedant, MS used the term JScript as its
"Javascript implementation" because NS had a bitch fit about MS using
its name.
Maybe you meant to say that Netscape had better
ways for scripting HTML documents, while you would be confusing
programming language and AOM/DOM (unfortunately a mistake Netscape made
too until JavaScript 1.3).


No, He probably meant to say exactly what he said and in your desire to
be pedantically correct you inserted your foot into your mouth.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 7 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5033
by: Sims | last post by:
Hi, if i use... // php $info = getenv("HTTP_USER_AGENT"); // I noticed that Mozzila and Netscape <6(?) both use the same Agent. // so i was thinking of if (preg_match("/Mozilla/i", $info)) {
15
7286
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <script>document.write (window.history.length);</script>
3
2083
by: Simba | last post by:
Hi, I've written some javascript routines for Internet Explorer and Opera. Could you tell me the Netscape and Mozilla equivalents? Thanks ------------------------- //this works with Opera, not with Netscape and Mozilla:
4
2396
by: Scott Navarre | last post by:
Hi, I have Red Hat 8.0 and have the default Mozilla browser that comes with it. I am programming in javascript and have come across something problematic. Given the following code: <HTML> <HEAD> </HEAD> <BODY> <FORM>
5
2870
by: Roman Blöth | last post by:
Hello out there, pls excuse if my xposting might fall into a false group - this is a quick problem which I should solve soon... Why the heck would Mozilla 1.2.1 on a Mac (OS 9.x) render a HTML-page different from Netscape 6.01 on the same Mac? The page in question is (temporarily) http://www.gosub.de/felix/waitpage.html
3
2568
by: Parrot | last post by:
Does anyone else have a problem with the Mozilla browser not expanding a multi-line textbox to its proper size? My textboxes are all small and do not display mu;tiple lines in Mozilla or Netscape but are ok in Internet Explorer. Is there a reason for this and can it be fixed? Dave Uphoff
3
2086
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and 1.6, the function msg works fine if it's installed as an onclick handler for the button, but fails as an onload handler for the page. The error is "console has no properties", and is triggered by the line.
4
1815
by: Nariak | last post by:
Dear friends of programming! the script below only works with MSI and Opera but not with Netscape 7.x and Mozilla 1.x! What is wrong? Please help me! Thanks Ralf
49
2966
by: Aidan | last post by:
I rely heavily on MSDN for documentation when it comes to HTML/DHTML/JavaScript/CSS but as a result I often have problems getting my stuff to work in Netscape/Mozilla/Firefox. I like the MSDN online documentation (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/re ference/objects.asp) because it has complete lists of DHTML objects, properties, methods, collections and event and for each element you can easily view...
0
8636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9120
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8996
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8853
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4345
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3011
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.