Doing a german site, and have a JS alert to say you havn't completed all the required fields.
So want to get the langage of the HTMLpage
Here's the HTML;
<html xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
...
</html>
This is my JS.... it seems to error and not alert at all with the lang bits...
How do it get the xml:lang attribute?
var lang = document.getElementByTagname("html").attributes.getNamedItem("xml:lang").value;
alert("You must complete all the required information");
alert(lang);