Opening page in original browser window from pop up.

Markleshark

Junior Member
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

Code:
<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,
Mark.
 
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.

Code:
onclick="javascript: self.close()"

Thanks again,
Mark.
 
That function has that already, you just need to pass a second parameter to it.

e.g.

Code:
<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.

Thanks.
 
Back
Top