It's been a while and I currently don't have access to my old JavaScript tutorials, so please bear with me.

I'm aiming to, when somene clicks a link on my site (which redirects to another 3rd-party site), pop up a window which gives the option to return to my site. When the link is clicked inside this small pop-up window, I want the parent window to be redirected back to the main page of my site.

Any help would be greatly appreciated.
Thanks in advance!