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>