JavaScript Tutorial/DOM Node/getElementsByTagName
Версия от 21:52, 25 мая 2010; (обсуждение)
Get Elements by tag name and return an array of elements
<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>