Iframe - Select hyperlink and open a new window

Posted on 2007-10-05
Medium Priority
Last Modified: 2013-12-17
I have an Iframe that when selecting a hyperlink to another website the site page open within the iframe.

How do you select the hyperlink and open a new window??

Question by:nzcam
LVL 14

Expert Comment

by:Jai S
ID: 20026953
in hte line specify like this
<a href="your line" target="_blank">
if you specify the target as _blank then the link will bve opened in a new window..
if it is self then the same windwo...
if _blank does not work then try just blank...

Author Comment

ID: 20043949
This answer seem to be adding in the  target="_blank" into the actual htm file at the hyperlink.

I have over 5000 files that can be displayed in the Iframe and these are created by users.

I am looking for someway that when the user clicks the hyperlink in the Iframe , the Iframe does the work and opens a new window or displays the page fully in the current window.

Accepted Solution

dragy earned 225 total points
ID: 20145549
Hi nzcam,
Place an Iframe on the panel and set its source to your aspx page.

<div id="panel1" class="panel" >
<iframe name="iframe" src="your.aspx" class="iframe"> </iframe>

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

850 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