depending on which modal window you use, of course.Personally, I use jqModal, which has a handy onClose callback. I alsohad the need to, in some cases, refresh the main page after modalclose. So i added an option variable (boolean) telling if it shouldrefresh or not after closing the modal.I wrote a complete how-to here:http://www.pixeline.be/blog/2008/javascript-loading-external-urls-in-jqmodal-jquery-plugin/the bit of code you are interested in ...