Velocissimo e molto utile:
function insertAfter(parent, node, referenceNode)
{
parent.insertBefore(node, referenceNode.nextSibling);
}
English | js/ajax - 03/11/2005 @ 11:39
Velocissimo e molto utile:
function insertAfter(parent, node, referenceNode)
{
parent.insertBefore(node, referenceNode.nextSibling);
}
|
Wes
Another useless snippet of code. referenceNode.nextSibling will produce an empty textnode in Firefox if your code is indented properly, causing your script to add the element in the wrong place. If you want to find the next sibling for real, use a genuine function: function get_next_sibling(elem) { |
|
Dee @ Ecco Discount
Hello there, just stopped by doing some research for my Ecco website. Can’t believe the amount of information out there. Wasn’t what I was looking for, but great site. Cya later. |
|
Sabra Walston
This is a great write-up, I discovered your webpage researching google for a similar content and arrived to this. I couldnt come across to much other details on this blog post, so it was great to discover this one. I will certainly be returning to check out some other articles that you have another time. |
Thanks,
Helpful. I found you on google as the 1st result searching for “javascript insert after”
Cheers,
jaw