File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Capture Browser language preference using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Capture Browser language preference using javascript" Watch "Capture Browser language preference using javascript" New topic
Author

Capture Browser language preference using javascript

Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
Hi I need to capture Browser language preference using javascript. I have tried few thing like



but no matter what is the language selected in the browser it always returns [en-us]. Please help
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6


It might read the system and not browser

You might have to look at the data sent to the server.

Eric
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Capture Browser language preference using javascript
 
Similar Threads
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