Pop Up Window Question

If I have a page, let’s say named “demo.htm” and the user clicks on link this page that opens a pop up window where a flash animation plays inside of a html file. At the end of the flash animation, I want to have a link that will launch a different page in the window that demo.htm was just in. How would I do that?