Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Misc | Q115 [ previous next ]

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>

©2018 Martin Webb