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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 15376
    
    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://aspose.com/file-tools
 
subject: Capture Browser language preference using javascript
 
Similar Threads
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