...

View Full Version : insert After HTML tag??



conank
08-26-2006, 03:07 AM
Hi everybody
I have known insertBefore which insert HTML tag before another HTML tag.
Now I want insert HTML tag AFTER another HTML tag.
I searched, but not found. There isn't insertAfter :(
Anybody can help me?
Please
Thanks

Kravvitz
08-26-2006, 04:05 AM
Try this.

if(el.nextSibling) el.parentNode.insertBefore(newEl, el.nextSibling);
else el.parentNode.appendChild(newEl);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum