I\'m using fancy box to create a popup and load another page on it using an iframe. here is my code
SIMPLE solution, find link to close (it have a class fancibox-close) and do it in 6 seconds (or 6000 miliseconds)
setTimeout(function(){ $('.fancybox-close').click(); }, 6000);