[thelist] DOM in Mozilla

Nickolay Kolev nmk at gmx.li
Thu Oct 31 07:54:10 CST 2002


Hi all,

Can anyone  please tell me why this is working in IE6 but not in
Mozilla??

theLabel = document.getElementById("searchLabel");
theField = document.getElementById("searchField");

theField.value = theLabel.firstChild.nodeValue;

And this doesn't work either:

theField.value =  theLabel.childNodes.item(0).data;

What's wrong?

Many thanks,
_nmk




More information about the thelist mailing list