Geoffrey Summerhayes a écrit :
On May 15, 11:31 am, libsfan01 <mcyi2...@googlemail.comwrote:
>in firefox the following alert does not get created from my function:
ch = container1.childNodes(0).id;
alert(ch)
can anyone tell why this might not work in firefox but does in safari?
Why it could work in Safary I don't know,
but why it doesn't work in FF :
because the first chidNode in FF is an invisible text node (without id)
and anyway ... it is :
ch = container1.childNodes[0];
Are you getting an error in the console?
He can also have a look in Firefox's DOM inspector ( #text )
test :
======
ch = container1.childNodes[0];
alert(ch.nodeName);
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date