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


  • dialogResult
    Type: SP.UI.DialogResult

    One of the enumeration values specifying the result of the modal dialog.

  • returnVal
    Type: Object

    The return value of the modal dialog.

Applies To

SP.UI.ModalDialog Class


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.

See Also


SP.UI.ModalDialog Methods

SP.UI.ModalDialog Properties

SP.UI Namespace