You can use a querySelector for the component you want to interact inside a iframe from the doom after Iframe gets loaded in that way you can wrap an iframe and customize it, in this case you could listen to the events you desire.