Fancy Box - how to refresh parent page when close iframe popup?

前端 未结 12 826
逝去的感伤
逝去的感伤 2020-12-28 19:16

I want my parent page to refresh when I close a Fancy Box popup frame. I have a login page inside the popup, so I need the parent page to refresh to show the new login state

12条回答
  •  醉梦人生
    2020-12-28 20:07

    link refresh:

    jQuery(function($){ 
        $('#refresh').click(function ()
            {      
                parent.location.reload();
        });
    });
    
    refresh
    

    you can give:

    setTimeout(function () {
                parent.location.reload(); 
            }, 1000);
    

    or condition, for example,

    
    

提交回复
热议问题