mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-06 23:44:43 -04:00
21 lines
445 B
HTML
21 lines
445 B
HTML
<html>
|
|
<body>
|
|
<a id="blabla" href="/" rel="nofollow"><b>AAA</b><u id="ble">UUU</u></a>
|
|
<b id="empty"></b>
|
|
<script>
|
|
function aa()
|
|
{
|
|
window.alert(document.getElementById('blabla').childElementCount);
|
|
}
|
|
|
|
function bb()
|
|
{
|
|
window.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>
|