Creating onclick() events with choropleth maps created in plotly.py

Hi! I recently visualized Covid-19 cases with plotly.py and imported the .html file with an iframe into my website. Iโ€™m now wondering if itโ€™s somehow possible to create onclick() events onto that iframe to maybe put some information about the clicked country onto the website. Any help is greatly appreciated!