Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript dom after a element

function insertAfter(referenceNode, newNode) {
  referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #dom #element
ADD COMMENT
Topic
Name
5+4 =