Page 1 of 1

IE6 childNodes parameter refuses dynamic value

Posted: Thu Apr 09, 2009 5:14 am
by JAB Creations
Does any one know of an IE6 bug where using a dynamic parameter instead of a static integer for childNodes spawns a mindless error?

Code: Select all

var c = document.getElementById(b).childNodes.length;document.getElementById(b).childNodes(c).lastChild.attachEvent('onblur', function() {change(a,'menu');});

Re: IE6 childNodes parameter refuses dynamic value

Posted: Thu Apr 09, 2009 5:17 am
by JAB Creations
I discovered I could simply do the following...

Code: Select all

document.getElementById(b).lastChild.lastChild.attachEvent('onblur', function() {change(a,'menu');});
...and if IE6 supported hover and focus this wouldn't be something I'd be dealing with. :crazy: