Using JavaScript I would like to find out what the 'lang' attribute variable is set to. I have used:
- document.getAttribute('lang').value;
- document.head.parentNode.getAttribute('lang').value;
- document.body.parentNode.getAttribute('lang').value;
- document.querySelector('html').getAttribute('lang').value;
without success.
Is it possible and if so, how do I get the value?
Thanks in advance
Tony