Solved

iFrame opens in new window

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

740 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