开发者

Reload parent page when modal box closes

开发者 https://www.devze.com 2023-02-14 12:01 出处:网络
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

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;
       }
   });
0

精彩评论

暂无评论...
验证码 换一张
取 消