iFrame opens in new window
Posted on 2010-09-07
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?