How to close a jQuery fancybox from button click

前端 未结 9 1027
你的背包
你的背包 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:29

    Use event close button of fancybox:

    document.getElementsByClassName("fancybox-item fancybox-close")[0].click();
    

提交回复
热议问题