JavaScript - Remove everything after </html> tag

Posted by šljaker on Stack Overflow See other posts from Stack Overflow or by šljaker
Published on 2010-03-25T15:55:29Z Indexed on 2010/03/25 16:13 UTC
Read the original article Hit count: 325

Filed under:

Can anyone tell me how to write javascript code that removes everything after the html tag.

I have the following file:

<html>
<head>
<script>
// my script
</script>
</head>
<body>
Some text
</body>
</html>
<script>
</script>

Rendered output must not contain the last script (or any other) tag.

© Stack Overflow or respective owner

Related posts about JavaScript