How to go back to parent page?

Get help using Construct 2

Post » Thu Jun 28, 2012 11:00 pm

SOLVED --- See edit at the bottom

______________________________________

I have created a test game and embedded it on my website. The game has an X button if someone wants to stop playing. I'm using the Browser object to go to another page once that button has been clicked. The problem is that this happens in the iframe I published the game in, but what if I want the parent page to be redirected to the destination page?

Is there a way to do this?
Thank you!

_______________________________________

EDIT: Solved. I've found a way to work around the problem by adding a new action to the default Browser object.Mihai Damianov2012-06-28 23:49:59
B
9
S
1
Posts: 5
Reputation: 1,312

Post » Wed Aug 29, 2012 3:18 pm

hi,
can you help me?
after this condition(on left button clicked on text 5),

i want to redirect to my front page.
my problem is that the url redirection is inside the iframe.



asikanddestroy2012-08-29 15:31:48
B
7
S
2
G
1
Posts: 5
Reputation: 1,242

Post » Wed Aug 29, 2012 11:08 pm

solved with this code:

[QUOTE]<script>window.top.location.href = "http://localhost/construct/";
document.domain = "localhost/construct/"
</script>[/QUOTE]asikanddestroy2012-08-29 23:09:13
B
7
S
2
G
1
Posts: 5
Reputation: 1,242


Return to How do I....?

Who is online

Users browsing this forum: michaelverdi and 29 guests