# iframe

**URL:** <https://discourse.softpress.com/t/iframe/15613>\
**Category:** Freeway\
**Created:** [November 13, 2012, 7:44am UTC](https://discourse.softpress.com/t/iframe/15613 "2012-11-13T07:44:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GTPeter](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/g/bc8723/32.png) [@GTPeter](https://discourse.softpress.com/u/GTPeter)\
**Post date:** [November 13, 2012, 7:44am UTC](https://discourse.softpress.com/t/iframe/15613/1 "2012-11-13T07:44:46Z")

</div>

Question: if I have an iframe and within this iframe an other webpage, how can I set it up so that the webpage stays within the iframe, even if I choose a link there. I think they are \_blank cause if I choose a link there, the “new page” opens out of the iframe. In a new window. Hope the question is clear :o) . Thanks for help.

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [November 13, 2012, 2:15pm UTC](https://discourse.softpress.com/t/iframe/15613/2 "2012-11-13T14:15:24Z")

</div>

Unless you control the source code of the page that you are putting inside the iframe, you don’t have any way around this. If it’s your site, then you can avoid the calls to target. (The default target is \_self, which puts the next page in the exact same context as the page that links to it. You get that for “free” just by making a link.) But if you are framing in someone else’s site, you can’t override their coded intentions.

Walter

On Nov 13, 2012, at 2:44 AM, TomP wrote:

> Question: if I have an iframe and within this iframe an other webpage, how can I set it up so that the webpage stays within the iframe, even if I choose a link there. I think they are \_blank cause if I choose a link there, the “new page” opens out of the iframe. In a new window. Hope the question is clear :o) . Thanks for help.
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![GTPeter](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/g/bc8723/32.png) [@GTPeter](https://discourse.softpress.com/u/GTPeter)\
**Post date:** [November 13, 2012, 3:28pm UTC](https://discourse.softpress.com/t/iframe/15613/3 "2012-11-13T15:28:00Z")

</div>

Thank you Walter!

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
