Access parent variable with hypeDocument in an iFrame?

This is a general need for webpages but not specifically HypeI but would suggest you look up postMessage in the search on the site. Or on Google.

To start you off here is one that allows the parent to post a message to the child iframe. You should be able to adapt the idea/code to what you need.