Get the lang from HTML tag

document.getElementsByTagName('html')[0].getAttribute('lang');

 

Leave a Reply

Your email address will not be published. Required fields are marked *