I have a scene containing an element onto which I attach a click event handler with an action of “Open URL” and then I set the URL to a another Hype page. It works perfectly in normal conditions, but the page needs to function inside a frameset. The expected behavior is to:
- load the outer HTML page that contains a frameset.
- One of the frames in this page points to the first Hype page.
- Within the first Hype page, there is a element that has the click event attached to it (using the Hype editor) with an action of “Go to URL…” and a URL set to the second Hype HTML page.
- When the user clicks this page the HTML frameset frame should navigate to the URL.
Instead, what happens is that (at step 4) the outer HTML window navigates to the URL, replacing the frameset completely. This is due to the line in HYPE.js that calls “
window.top.location = url;” (minified to “
r.top.location = g;”), instead of “
window.location = url;”
Can you advise what I need to do to navigate the current HTML window instead of the top window?