• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Opening page in original browser window from pop up.

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? I've tried

<a href="..." " target="_parent">link</a>
but that just opens the page inside the pop up window.

Hope I've been clear enough.

Thanks in advance,
Works like a friggin' charm. Thanks my friend.

Further on to this, would there be a way to close the popup window while opening in that original window? I've tried adding a second 'onclick' to the link and using the below java, but that doesn't seem to work, popup stays open.

onclick="javascript: self.close()"
Thanks again,
That function has that already, you just need to pass a second parameter to it.


<a href="openthispage.htm" onclick="return targetopener(this[COLOR=Red][B], 1[/B][/COLOR])">Click Here</a>
Should work.
Thanks both.

I now have the pop up closing on click. Cheers for that Mark.

I'll maybe look into Fancybox for version 1.1 Onartis, looks rather nice and easy enough to implement.