✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Onclick to trigger a javascript function in html.A()

Any recommended resources for triggering a javascript onclick function in Dash?

Trying to build the equivalent of this…

a href="#" onclick=“show(‘mydiv’)”

Was researching html.A() and there doesn’t appear to be an onclick attribute for anchors in Dash? Or is there?

Would love to know.

FYI, I’ll try to trigger through the URL


This works. Hopes this helps anyone who has a similar issue.