I'm new to javascript...I' m getting 'parentNode' is null or not an object error in the following code
[CODE=javascript] for (var ci=0;ci<headerL ink.parentNode. childNodes.leng th;ci++) {
if (headerLink.par entNode.childNo des[ci].tagName && headerLink.pare ntNode.childNod es[ci].tagName.toLowe rCase() == 'span') span = headerLink.pare ntNode.childNod es[ci];
}[/CODE]
can anybody tell me what is the error ?
[CODE=javascript] for (var ci=0;ci<headerL ink.parentNode. childNodes.leng th;ci++) {
if (headerLink.par entNode.childNo des[ci].tagName && headerLink.pare ntNode.childNod es[ci].tagName.toLowe rCase() == 'span') span = headerLink.pare ntNode.childNod es[ci];
}[/CODE]
can anybody tell me what is the error ?
Comment