JavaScript DHTML/Node Operation/tags
Версия от 13:02, 26 мая 2010; (обсуждение)
"tags()" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript">
function function1() { alert(document.all.tags("p").length); }
</script>
This is a sample text.
This is another sample text.
This is another sample text.
This is another sample text.
This is another sample text.
This is another sample text.
This is another sample text.
This is another sample text.
This is another sample text.
This is another sample text.
This is another sample text.
<input type="button" value="Number of p elements" onClick="function1();"> </body> </html>
</source>