Keith Watanabe * NET 2.0

replaceChild
By: Keith Watanabe
Published On: 10-16-2005

i found something rather annoying when attempting to do replaceChild in javascript. this only works if there are children in the document tree. so let's say you have an empty div tag. this won't run under javascript because there's no nested children. to circumvent this you need to fill it. i use the nbsp character. works quite nicely.

Tags: javascript
AddThis Social Bookmark Button Sphere: Related Content

Trackbacks: (Trackback URL)

No Comments Posted Yet
September [October] November
Sun Mon Tue Wed Thu Fri Sat
28 29 30 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 1