Colorbox reload parent page on close

Lucas picture Lucas · Apr 19, 2011 · Viewed 28.9k times · Source

My issue is that I need a colorbox to reload the parent page on close.

This is what I have:

$(".example").colorbox({
    onClosed:function(){
        parent.location.reload();
    }
});

Colorbox loads fine, but doesn't refresh the parent page on close. Any Ideas?

Answer

CoolEsh picture CoolEsh · Apr 19, 2011

Use window.location.reload(); or window.location = window.location; instead of parent.location.reload();