jdunck at gmail.com
Tue Apr 12 16:18:42 EDT 2005
On Apr 12, 2005 3:08 PM, Scott R. Turner <srt at aero.org> wrote:
> On Tue, 12 Apr 2005, Mark Pilgrim wrote:
> > - Insert after an existing element
> > existingElement.parentNode.insertBefore(newElement,
> > existingElement.nextSibling);
> Does that work if there is no nextSibling?
Yes, because in that case, nextSibling returns null, in which case,
insertBefore inserts at the end of the childNodes list.
More information about the Greasemonkey