How to close a jQuery fancybox from button click

前端 未结 9 1055
你的背包
你的背包 2021-01-01 15:52

I\'m using fancy box to create a popup and load another page on it using an iframe. here is my code

    

        
9条回答
  •  误落风尘
    2021-01-01 16:24

    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);
    

提交回复
热议问题