I don't think Tableau offers that functionality, but there could be some other web tools that would do that. Tableau Server renders web pages using HTML, so if the other tool can detect interactions with HTML elements and trigger some script, then this is possible.
Currently, this functionality does not exist in Tableau. However, you are not the first person to request this. I would recommend putting it under the Ideas section in Community!