A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
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 ?
Removing an alert , code fails working
Capture browser close
How do I redirect to a specific URL?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015