in a html page, i have
<html>
<script>
var cnt=''+document.documentElement.innerHTML+'';
cnt=cnt.replace(......);
</script>
<body> something else</body>
</html>
how to use replace function above, so that my 'cnt' var content is like below
<html>
<body> something else</body>
</html>