Set lang tag in iframe as the value of parent lang tag HTML

  html, iframe, javascript

I have an application inside of an iframe which needs to be translated. However the language which needs to be used is set in the parent lang tag.

Is there any way to get the lang value of the parent and set it as the lang value in the iframe?

Source: Ask Javascript Questions