SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal) Method
Applies to: SharePoint Foundation 2010
Closes the most recently opened modal dialog with the specified dialog result and return value.
SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal);
Parameters
dialogResult
Type: SP.UI.DialogResultOne of the enumeration values specifying the result of the modal dialog.
returnVal
Type: ObjectThe return value of the modal dialog.
Applies To
Remarks
This method closes the modal dialog opened with the SP.UI.ModalDialog.commonModalDialogOpen(url, options, callback, args) Method with the dialog result specified by the dialogResult parameter. It passes the return value specified by the returnVal parameter to the callback method specified in the call to the commonModalDialogOpen method.