Function call/trigger on mouse hover?

Is it possible to call or trigger python functions with css/js like mouse hover?

An example. In one of my apps I have a html table which flips to show another html table on mouse hover, then I have panel buttons to call other html codes from a server to replace the two tables with different ones.

So, I’m wondering if it is possible somehow to update the html which is a python function via mouse hover if that makes sense?