Quote:
|
document.getElementById("abomb").parentNode.appendChild(el);
|
yea that looks right. but if 'abomb' is the only thing on the page, then 'body' is after all its parentNode, so i guess document.body.appendChild(el) and the above one are pretty much the same thing ... or aren't they?
by the way, i couldn't get any cousins because 'abomb' doesn't have any previous siblings...

if it did, though, i don't think appending a child to the previous sibling would keep the hierarchy flat, it would make 'abomb' el's uncle (or aunt ...

)