B
Brian A
Can anyone tell me what is wrong with :-
tNode=document.getElementById("currentStructure").firstChild;
alert("tNode="+tNode);
In Firefox the alert reports: tNode=[object Text]
In IE6 the alert reports: tNode=null
If I change the code to
tNode=document.getElementById("currentStructure").childNodes[0];
alert("tNode="+tNode);
which should be exactly the same, Firefox reports as before
but IE6 reports 'undefined'.
Either way IE6 doesn't like it. So what am I doing wrong??
Remove 'no_spam_' from email address.
Skype Free Zone!!
tNode=document.getElementById("currentStructure").firstChild;
alert("tNode="+tNode);
In Firefox the alert reports: tNode=[object Text]
In IE6 the alert reports: tNode=null
If I change the code to
tNode=document.getElementById("currentStructure").childNodes[0];
alert("tNode="+tNode);
which should be exactly the same, Firefox reports as before
but IE6 reports 'undefined'.
Either way IE6 doesn't like it. So what am I doing wrong??
Remove 'no_spam_' from email address.
Skype Free Zone!!