JavaScript - Remove everything after </html> tag
<p>Can anyone tell me how to write javascript code that removes everything after the html tag.</p>

<p>I have the following file:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script&gt;
// my script
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
Some text
&lt;/body&gt;
&lt;/html&gt;
&lt;script&gt;
&lt;/script&gt;
</code></pre>

<p>Rendered output must not contain the last script (or any other) tag.</p>
