JavaScript - Remove everything after </html> tag
- by šljaker
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.