Make link in iframe target parent page

16 February 2017 18:20
I have set up page redirects in the logic editor of a project and have embedded it into an iframe on a html page. However, when links are clicked in the iframe they are not redirecting the entire page (only redirecting in the iframe). Normally it sounds like you can fix this with
<a target="_top" href="">Click me!</a>
or in JS = "";

But, In this case I'm not sure how to go about this as there's nowhere to input this. Any suggestions?
Thanks in advance!
20 February 2017 16:41

This is rather specific behaviour which is not supported by the logic editor. You can try to modify the source code and recompile the engine.
The Founder | Twitter
22 February 2017 04:19
Thanks Yuri, I've found a solution.

For anyone who may need to do this in the future:

Rather than trying to link from an iframe, I think it's better to create a custom app and modify the canvas container in the HTML to be the same size as an iframe (or do whatever you were trying to accomplish by using an iframe). That way the blend4web content will be part of the page rather than embedded and will redirect the entire page.

Please register or log in to leave a reply.