Я бы рекомендовал другой подход по сравнению с использованием тегов script / noscript.
Что-то вроде этого работает лучше всего:
<!DOCTYPE html>
<html class="noJS">
<head>
<title>noJS Demo</title>
<style type="text/css">
html.noJS .jsRequired,
html .noJS{
display: none !important;
}
html.noJS span.noJS{
display: inline !important;
}
html.noJS div.noJS{
display: block !important;
}
</style>
<script type="text/javascript">
function onDocumentLoad(){
var html = document.getElementsByTagName("html")[0];
html.className = html.className.replace("noJS", "");
}
</script>
</head>
<body onLoad="onDocumentLoad();">
<p>This is some text<span class='noJS'> that should be displayed on the same line with the same style if JS if disabled.</span></p>
</body>
</html>
Конечно, если вы используете фреймворк, такой как jQuery, JavaScript станет еще проще, просто удалите функцию JS и функцию из тела, а затем просто используйте следующий JS:
$(document).ready(function(){
$("html").removeClass("noJS");
});