<html>
<head>
<style type="text/css">
.pagecontainer {
display:none;
}
</style>
<script>
function load() {
document.getElementById('noscriptmsg').style.display = "none";
document.getElementById('load').style.display = "block";
/* rest of js*/
}
</script>
<noscript>
<meta http-equiv="refresh" content="4; URL=http://google.com">
</noscript>
</head>
<body onload="load();">
<div class="pagecontainer" id="load">
You have javascript enabled. Good luck with that.
</div>
<div id="noscriptmsg"><h1>
You don't have javascript enabled. Good luck with that.
</h1></div>
</body>
</html>