...

View Full Version : appendChild



emehrkay
07-24-2006, 08:53 PM
i want to add a div before an element in a loop, im just not sure how to do that.

quirksmode shows an example of adding an element as a child to an existing element. i have an item blocks[i] that i would like to add a div in front of, anyway i can do that?

thanks

emehrkay
07-24-2006, 08:55 PM
i think i found it. insertbefore

http://developer.mozilla.org/en/docs/DOM:element.insertBefore



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum