Hallo
IE has a navigator property which is
navigator.systemLanguage
and also
navigator.userLanguage
it returns intenrational codes for nationalities: exaple 'it' for Italy.
NS6 has a
navigator.language
property which returns a slightly different value: for english it returns
en-US
if you want you can open with different browsers the following file I made:
http://www.unitedscripters.com/hotvamps/browsers.html
upon loading it will list all the properties for each object in a select
menu (starts with the window object of course), upon selection it will
unfold the selected object too (if it is an object). In the second half of
the file you can provide yourself objects, such as "navigator" and click
"Populate" - on both sections you'll see properties, data type, and values
as well. You can check with all the browsers you prefer. I think that can be
helpful to inspect a great deal of properties we webmasters are not always
familiar with or we didn't even know they existed.
You can also check DOM objects as they get unfolded. To reset, reload the
page.
I have not checked with NS4 though - ok I do it now...
yeah it has
navigator.language
too and for it reports "en" for english.
You can check by
var
language=(navigator["language"])?navigator["language"]:navigator["userLangua
ge"];
allow for a value "undefined" for browsers that don't fall in either scope.
ciao
Alberto Vallini
http://www.unitedscripters.com/