Jump to content
Sign in to follow this  
JenniferLawrence

Is it possible to target outside of an iframe?

Recommended Posts

Hi, so I have an iframe that has links in it. I want the links to target the appropriate page and when the page is done executing, instead of redirecting inside the iframe and having the page in the iframe change, I want the parent page to refresh.



					index.php <---------------------------- page is done executing, redirect the actual page. Not the iframe
					    |                                                                      |
					    v		                                                           |
					 iframe  -----> links inside the iframes are clicked ---> actions with the links are done
							

This is how I want it to perform. Can this be done?

Share this post


Link to post
Share on other sites

I am pretty sure that this is not possible for safety reasons. 

Actually, it is possible. I solved my problem by appending the target="_parent" to the links inside the iframe. I controll both iframe and index.php so what about saftey reasons again?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.