85
rated 0 times
[
87]
[
2]
/ answers: 1 / hits: 31498
/ 15 Years ago, thu, march 19, 2009, 12:00:00
I am trying to get the lang value from the HTML tag, but the current JavaScript I am using doesn't work.
This is the HTML code I am trying to access:
<html lang=it-IT>
And the Javascript
if(navigator.appName == 'Netscape')
{
langType = navigator.language;
}
else
{
langType = navigator.browserLanguage;
}
but in testing I still get the value EN-us
Can anyone help?
Thanks!
More From » javascript