Opening page in original browser window from pop up.

Discussion in 'Web Design and Development' started by Markleshark, Jun 12, 2010.

  1. macrumors 603

    Markleshark

    Joined:
    Aug 15, 2006
    Location:
    Carlisle, Up Norf!
    #1
    Sorry for the rather long thread title.

    I'm currently building a (pretty basic) website for a friends band and when you click on a snippet of a news item it brings up a small pop up box with the full news item (pop up is in Java).

    I want to include a link to their "News Archive" inside this pop up box, but I want that page to open in the original browser window (the one the user was reading before clicking to bring up the news article).

    Is this possible?

    Hope I've been clear enough.

    Cheers,
    Mark.
     
  2. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    In the link, add a target attribute and target the parent.

    HTML:
    <a href="..." target="_parent">link</a>
     
  3. thread starter macrumors 603

    Markleshark

    Joined:
    Aug 15, 2006
    Location:
    Carlisle, Up Norf!
    #3
    I've tried this, still just opens the page within the popup.

    Cheers anyway, any more ideas?
     

Share This Page