Function appendBefore

Append given node before reference node in the DOM

  • Parameters

    • newNode: HTMLElement

      New node element to be appended

    • referenceNode: HTMLElement

      Reference node element

    Returns boolean

    Result of the action