Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 940
  • Last Modified:

iFrame opens in new window

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
JiveMedia
Asked:
JiveMedia
1 Solution
 
QPRCommented:
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
 
sam2912Commented:
You may need a name attribute also.
<iframe id="pdf-container" name="pdf-container"

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now