Search.../

onTooltipLinkClick( )

Adds an event handler that runs when the link within a tooltip is clicked.

Syntax

function onTooltipLinkClick(handler: EventHandler): Element
handler: function EventHandler(event: Event): void

onTooltipLinkClick Parameters

NAME
TYPE
DESCRIPTION
handler

The name of the function or the function expression to run when the link within a tooltip is clicked.

Returns

The element to which the event handler was added.

Return Type:

EventHandler Parameters

NAME
TYPE
DESCRIPTION
event

The event that occurred.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

Open an element when the visitor clicks a link within a tooltip

Copy Code
1$w('#myInfoIcon').onTooltipLinkClick(event => {
2 let clickedElement = event.target;
3});