var html = document.getElementsByTagName('html')[0]; html.className = html.className.replace('no-js', ''); html.className = html.className + ' js'; // document.getElementsByTagName("html")[0].className = document.getElementsByTagName("html")[0].className.replace("no-js", "js");

Content | Navigation |