Ik wou even alle elementen (
) van het document object weergeven, maar dat wil niet helemaal lukken.
Heb tot nu toe dit:
Maar hij blijft hangen bij document.scripts.o
iemand een goed idee ?
Heb tot nu toe dit:
code:
1
2
3
4
5
6
7
| function showChilds(sItem) {
for (i in eval(sItem)) {
document.write(sItem + '.' + i + '<br>');
showChilds('' + sItem +'.' + i);
}
}
showChilds('document'); |
Maar hij blijft hangen bij document.scripts.o
iemand een goed idee ?
