# OnHotSpotClick Event

## Applies to

THtmlViewer component

## Declaration

property OnHotSpotClick: THotSpotClickEvent;

## Description

The OnHotSpotClick event occurs when the mouse is over an hypertext link and the left mouse button is clicked. See the THotSpotClickEvent type for information on the parameters.

## Example

The following code may be used to load the hypertext link URL into an Edit box when a mouse click occurs:

Viewer.OnHotSpotClick := HotSpotClick;

....

procedure TForm1.HotSpotClick(Sender: TObject; const URL: String;

var Handled: Boolean);

begin

Handled := False;

Edit1.Text := HTMLToDos(URL);

end;

## See Also:

LinkAttributes Property

LinkText Property