[thelist] DOM in Mozilla
S.tygian B.lacksmith S.tudios
studio at zero.zero.xs2.net
Thu Oct 31 06:58:00 CST 2002
It would help if you could post some source from the document you're
trying to manipulate.
Also: what version of Mozilla are you testing with, and is IE6 rendering
in standards-compliant or compatibility mode?
Regards,
S. G.
> 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