Try this script to get your browser language
<script type="text/javascript">
var userLang = navigator.language || navigator.userLanguage;
alert ("The language is: " + userLang);
</script>
Cheers
More Related Contents:
- Javascript / Html Check box error [closed]
- Why does Date.parse give incorrect results?
- How do I convert an existing callback API to promises?
- JavaScript % (modulo) gives a negative result for negative numbers
- Why does instanceof return false for some literals?
- Javascript removeEventListener not working
- How can I convert string to datetime with format specification in JavaScript?
- How to chain and share prior results with Promises [duplicate]
- One liner to flatten nested object
- Reactjs async rendering of components
- Sorting a JSON object in Javascript
- What is the JavaScript >>> operator and how do you use it?
- Is && statement() the same as if() statement()?
- How do you test for NaN in JavaScript?
- JavaScript triple greater than
- Tried to Load Angular More Than Once
- Use :hover to modify the css of another class?
- modify a css rule object with javascript [duplicate]
- window.variableName
- How do I move file a to a different partition or device in Node.js?
- How to get cookie expiration date / creation date from javascript? [duplicate]
- Why is my function being called twice in React?
- Javascript – String concatenation [duplicate]
- How does the (function() {})() construct work and why do people use it?
- collapse and expand tabs jquery / simple accordion
- Alternative for innerHTML?
- How to include local javascript on a Gatsby page?
- How to add a Facebook “Like” button to an AJAX driven page
- Why was ECMAScript 4th edition completely scrapped?
- Extract keyword from Google search in Javascript