1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/test/ecmascript/childElementCount.html

21 lines
431 B
HTML
Raw Normal View History

2021-05-08 15:51:34 -04:00
<html>
<body>
<a id="blabla" href="/" rel="nofollow"><b>AAA</b><u id="ble">UUU</u></a>
<b id="empty"></b>
<script>
function aa()
{
alert(document.getElementById('blabla').childElementCount);
}
function bb()
{
alert(document.getElementById('empty').childElementCount);
}
</script>
<button onclick="return aa()">blabla child element count</button>
<button onclick="return bb()">empty child element count</button>
</body>
</html>