Inserts a new hypertext link at the current input position.

<void> HypertextLinkCollection.add(<string> text, <string> target, [<RequestHypertextLinkCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
text Specifies the visible text of the hypertext link.
target Specifies a string specifying to where the hypertext link points.
callback Optional. Receives the added document link or null if no link could be added.
errorCallback Optional. Is called when the operation failed with an error.