Events and iframe

Hi everyone, I have a question about iframes:

<iframe style="border: none" width="1920" height="1080" src="yourlink" allowfullscreen allow="autoplay"></iframe>

I want to use the embed code generated by Rive and be able to detect and handle "Open URL" events in my own code. Is this possible? If so, how can I achieve it?

Thanks in advance!