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
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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:
script to detect language support in browser
alert message - perl ?
How do I redirect to a specific URL?
Capture browser close
Removing an alert , code fails working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014