Iframe - Select hyperlink and open a new window

Posted on 2007-10-05
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

    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

    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.
    LVL 1

    Accepted Solution

    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>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now