question: public static void insertAfter ( Node newNode , Node refNode ) throws DOMException { Node parent = refNode . getParentNode ( ) ; Node next = refNode . getNextSibling ( ) ; if ( next == null ) { parent . appendChild ( newNode ) ; } else { parent . insertBefore ( newNode , next ) ; } }
target:  Analogous to the Node.insertBefore() method, insert a newNode after a refNode.