»
EnglishFrenchVietnamese

Print - insertAfter() - JavaScriptBank.com

Full version: jsB@nk » Snippet » insertAfter()
URL: https://www.javascriptbank.com/insertafter.html

insertAfter() © JavaScriptBank.comUse this JavaScript snippet to insert a node after another node. Quite handy in laying out Web pages.

Full version: jsB@nk » Snippet » insertAfter()
URL: https://www.javascriptbank.com/insertafter.html



JavaScript
<script language="javascript"><!-- Add this snippet to your existing JavaScripts  -->// Created by: Public Domainfunction insertAfter(parent, node, referenceNode) {  parent.insertBefore(node, referenceNode.nextSibling);}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->