I've seen on some web pages that when you click on a link a javascript window will pop up and then when you click something on that javascript window, the original window (the one the javascript window came from) changes to another section of the site.

Does anyone knows how i can do this?