I\'m using fancy box to create a popup and load another page on it using an iframe. here is my code
$.fn.fancybox.close() doesn't work for version 2.x, in fact, it raises an error. If you're using version 2.x, try $.fancybox.close(true) instead.
$.fn.fancybox.close()
$.fancybox.close(true)