function closeBox () { var index = parent . Layer . getFrameIndex ( window .name) ; // get the current window index parent . Layer .close (index) ; // Close executed }
Close executed successfully refresh the page
window.parent.location.href = window.parent.location.href;