Skip to main content

Field.hyperlinkUri Property

Gets or sets a URI to navigate to when the hyperlink (represented by the current field) is activated.

Declaration

get hyperlinkUri(): string

Property Value

Type Description
string

A string representing an URI.

Remarks

//Gets URLs of all hyperlinks in the main sub-document
var fields = richEdit.document.mainSubDocument.fieldsInfo;
var hyperlinkUrls = [];
for(var i = 0; i < fields.length; i++) {
    var field = fields[i];
    if(field.isHyperlink && field.hyperlinkUri)
        hyperlinkUrls.push(field.hyperlinkUri);
}
See Also