JavaScript ovendChild di indeks

parentElement.insertBefore(newElement, parentElement.children[2]);
DeuxAlpha