DocuVieware Reference Guide
HighlightSelectedText
Reference Guides > JavaScript API > Actions > Operations > HighlightSelectedText
 HighlightSelectedText

This function allows you to highlight the current mouse selected text.

HighlightSelectedText: function (docuViewareID[, color])

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to highlight the selected text from.
color
Optional. An HTML hex color string defining the color, if omitted default is "#FFFF00" (yellow).

Return Value

1 if error, 0 if success.