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

前端 未结 12 913
逝去的感伤
逝去的感伤 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:13

    When using the examples with 'location.reload' you get a browser pop that lets you know it needs to reload the page. I fired a button click to refresh the page and no warning popup.

    $(".addDoc").colorbox({
        iframe: true, 
        width: "550px", 
        height: "230px",
        'onClosed': function() {
            $("#btnContSave").click();
        }
    });
    

提交回复
热议问题