Can you post the Hype file so we can see what is going on?
you'll need to handle a window.parent as target to grab data. depth is up to your doc-construct ...have a look over here: thread
or may be read / write some data to sessionstorage ...
You can set your Scene name as a variable attached to the window by running this function:
window.TitleOfDocument = hypeDocument.currentSceneName();
Then, you can use this variable anywhere you want in the same window: window.TitleOfDocument
You can also use sessionStorage to store information, and when the window is closed, the session ends, and is removed.