Colorbox is very cool js plug-in which is used by many developers.
I was creating a facebook app and had situation where i wanted to close Colorbox/popup and open new page which was not suppose to open in Colorbox.
I was searching and found really simple code which can be used in several ways with any php technology stuff.
PHPMIND.COM This is good for normal site
PHPMIND.COM This works when we have Iframe like in facebook apps