Clean DOM-Object
2
Remove all children of Object.
<script type="text/javascript">
function clean(obj) {
while (obj.hasChildNodes()) {
obj.removeChild(obj.childNodes[0]);
}
}
clean(document.getElementById('test'));
</script>
</body>
</html>



mcheung63
cicero
mycodeofshailendra
nostromo
KennethCC
Keetee
me
jamesmcm
Can
Kelmi
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
Cheers