Solved

iFrame opens in new window

Posted on 2010-09-07
2
922 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

756 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