Event listeners while launched in bootstrap modal

I am building different functionality in my site for tracking purposes and completion dates when users go through hype projects. Currently, the projects are launched in a bootstrap modal which embeds it in an iframe.

Is there a way to target the iframe externally using the listeners:

window.HYPE_eventListeners.push({“type”:“HypeSceneLoad”, “callback”:sceneTitleCallback});

I am able to develop the functionality when it is just in a normal webpage but not in iframe. Any suggestions would be amazing.

search for postMessage …

1 Like