The DomNode class / om.DomNode methods |
Inserts an existing node before the existing node specified.
insertBefore( new om.DomNode, existing om.DomNode)
The insertBefore() method takes an existing om.DomNode element node and adds it before the child node passed as second parameter, in the list of children of the object node calling the method.
The child node passed to the insertChild() method must have been created from the same DOM document object, for example with the om.DomDocument.createElement() method.
DEFINE parent, other, child om.DomNode ... LET child = mydoc.createElement("Item") CALL parent.insertBefore(child, other)