JavaScript Tutorial/DOM Node/Remove
Remove child element from body
<source lang="javascript">
<html> <head>
<title>removeChild() Example</title> <script type="text/javascript"> function removeMessage() { var oP = document.body.getElementsByTagName("p")[0]; document.body.removeChild(oP); } </script>
</head> <body onload="removeMessage()">
A
B
C
</body> </html></source>