Solved

iFrame opens in new window

Posted on 2010-09-07
2
913 Views
Last Modified: 2012-05-10
Hi,

I have a webpage that contains a navigation bar and an iframe below which i load content into via the links in the navigation bar.

Now this works fine on all browsers on my mac except firefox, and on internet explorer and firefox on windows it loads the iframe content into a new browser window, not the targeted frame below the navigation.

I don't want the link to open a new browser window, just to load the content into the iframe below in the same browser tab.

My navigation links look like the below;
<li><a href="/company-brochure/index.html" target="pdf-container" title="Company Brochure">Company Brochure</a></li>

<iframe id="pdf-container" height="100%"></iframe>

Not sure why IE and Firefox are opening a new window, is there anyway around this?
0
Comment
Question by:JiveMedia
2 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 33624630
just as a test try reducing your iframe height to 90% or something.
Does this make a difference?
From distant memory, IE regards a frame that takes up the entire frameset as a security risk
0
 
LVL 14

Accepted Solution

by:
sam2912 earned 500 total points
ID: 33624644
You may need a name attribute also.
<iframe id="pdf-container" name="pdf-container"

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now