Adds a hyperlink to the specified parent and invokes the given function when the link is clicked.

  • Parameters

    • parent: Element

      DOM node to contain the new link.

    • text: string

      String that is used as the link label.

    • funct: MouseEventListener | KeyboardEventListener

      Function to execute when the link is clicked.

    • pad: number = 0

      Optional left-padding for the link. Default is 0.

    Returns HTMLSpanElement