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!