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.
This code waits for the page to load and then removes all tags after the
</html>try it with firebug and you will see. You need to create a place holder as such in this example<div id="last"></div>after your last tag and then it removes the rest of the tags.Don’t forget to scroll! Enjoy!
Oddly enought the formating of code here is not functioning right. Its probably my fault.
Edit renamed my variable to
body