Search...
onTooltipLinkClick( )
Adds an event handler that runs when the link within a tooltip is clicked.
Syntax
function onTooltipLinkClick(handler: EventHandler): Elementhandler: 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.
EventHandler Parameters
NAME
TYPE
DESCRIPTION
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});