Solved

iFrame opens in new window

Posted on 2010-09-07
2
905 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

9 Experts available now in Live!

Get 1:1 Help Now