File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Joined: May 26, 2009
Oct 01, 2009 00:37:02
alert(navigator.browserLanguage); alert(navigator.userLanguage); alert(navigator.systemLanguage);
but no matter what is the language selected in the browser it always returns [en-us]. Please help
Joined: Nov 08, 2001
Oct 01, 2009 05:27:21
var lang ="NA"; if (navigator.userLanguage) lang = navigator.userLanguage; else if (navigator.language) lang = navigator.language;
It might read the system and not browser
You might have to look at the data sent to the server.
I agree. Here's the link:
- it saves me about five hours per week
script to detect language support in browser
alert message - perl ?
Capture browser close
How do I redirect to a specific URL?
Removing an alert , code fails working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013