Reload parent page when modal box closes
I am using the jquery simplemodal plugin to popup a modal box and display a form I want to bind an event to the window close that reloads the par开发者_如何学Pythonent page.
or
onClose: function() {
window.location.reload(true);
}
See Also:
SimpleModal
According to the documentation, you should be able to bind an event to the onClose
to accomplish what you are looking for.
$(".someSelector").modal(
{
onClose: function (dialog) {
window.location.href=window.location.href;
}
});
精彩评论