This requires enabling ‘postmessage’ between your framed element and the element controlling it, similar to: How to Load and Unload (or Reset) Embedded Hype Widgets
Once you enable the link, you can use regular Hype API commands to target the element within the frame.