Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iframe link not working in Safari

Status
Not open for further replies.

buddyrich2

Technical User
Apr 12, 2006
87
US
This isn’t easy to explain but here it goes…

I have a site that is basically comprised of two regular frames – named ‘header’ and ‘content’. The main content of the website is in ‘content’. I usually target everything to ‘content’ and it works fine. I now have an inline frame inside content – we’ll call it ‘Iframe”. I have links inside ‘Iframe’ which I need to target ‘content’ and have them execute in content. When I put “… target=content” in the link it works fine in IE. In Safari however, clicking the link makes it open in a new browser.

Isn’t there a way, with javascript, to reference the parent, which is in this case “content” and make it work right in any browser? If so, can you give me an example of the javascript?

Thanks is advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top