IE6 childNodes parameter refuses dynamic value

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

IE6 childNodes parameter refuses dynamic value

Post 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');});
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IE6 childNodes parameter refuses dynamic value

Post 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:
Post Reply