Refresh the Parent Browser window from SharePoint 2010 Modal Dialog

If you want to refresh the parent browser window from the SharePoint Dialog box ,please use the below code

function OpenChangePasswordDialog(url, title, wdth, hght)


                                                var options = {

                         url: url,

                         title: title,

                         allowMaximize: false,

                        showClose: true,

                        width: wdth,

                         height: hght,

                        dialogReturnValueCallback: CloseWindowCallback



                    return false;


function CloseWindowCallback(dialogResult, returnValue)


         if(dialogResult == SP.UI.DialogResult.OK)



this.statusId = SP.UI
            .addStatus(“Password Changed”,
               “Your password has been changed. Use it next time when you log in.”,

        SP.UI.Status.setStatusPriColor(this.statusId, “Green”);



Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s