I'm embedding an external website that I do not have control over into my site using an iFrame. My problem is that some of the links inside the iFrame open the iFramed site in the same tab, which takes the user away from my website.
What I'm trying to do is influence the links inside the iFrame so they behave similar to target="_blank", so they open in a new tab, leaving my site intact in the original tab.
So far in my research its looking like it's impossible to influence the links inside an iFrame in this fashion without having control of the actual iFrame content. If it is in fact not possible, is there another solution for embedding another site within mine that allows this control, that's not an iFrame?
It horrible to think that a person wants to move away from your website but it, as a user, always annoys me when a link opens a new tab or window. If I wanted that to happen I would hold the control or shift key down.
I see what you're saying that links that open new tabs are annoying, and the only reason that's what I'd like to have happen is so my site doesn't disappear. Ideally, I'd like the link to open inside the iFrame. So if the user clicks a link inside the iframe window, the link is displayed inside the context of the iFrame, so my site can continue to wrap the content. Is this possible?
There are legitimate reasons to include someone else's content in your website without stealing/copying their content. If such a thing isn't possible with an iFrame, is there another way to embed a site that could work? Perhaps jQuery?
Bookmarks