• Hello,

    I need to refresh a parent page when closing a lightbox.
    I add the following code in a lightbox page but it doesn’t refresh the parent page.
    Would you please let me know how to solve the problem?

    jQuery(document).ready($ => {
    $(document).on(“click”, e => {
    if (
    document.querySelector(‘.nivo-lightbox-overlay’).contains(e.target)
    &&
    !document.querySelector(“.nivo-lightbox-wrap”).contains(e.target)
    ) {
    location.reload();
    }
    });
    });

    Thank you.

    • This topic was modified 3 years, 2 months ago by IsBe.
  • The topic ‘How to refresh a parent page when closing a lightbox?’ is closed to new replies.