Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q115 Do you know how I can detect the users choice in the "preferred language", in Netscape Communicators preferences?

irt.org | Knowledge Base | JavaScript | Misc | Q115 [ previous next ]

Q115 Do you know how I can detect the users choice in the "preferred language", in Netscape Communicators preferences?

I'm not sure if this detects the "preferred langauge" but in Netscape Navigator version 4 and Microsoft Internet Explorer version 4 you can do:

<SCRIPT LANGUAGE="JavaScript1.2"><!--
if (navigator.appName == 'Netscape')
    var language = navigator.language;
else
    var language = navigator.browserLanguage;
//--></SCRIPT>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.