SP.UI.ModalDialog.OpenPopUpPage(url, callback, width, height) Method

SharePoint 2010

Last modified: May 23, 2011

Applies to: SharePoint Foundation 2010

Displays a modal dialog with the specified URL, callback function, width, and height.

SP.UI.ModalDialog.OpenPopUpPage(url, callback, width, height);


Type: String

The URL of the page to be shown in the modal dialog.


Type: function pointer

The callback function that runs when the modal dialog is closed.


Type: int

The width of the modal dialog.


Type: int

The height of the modal dialog.

This method opens the page with the specified URL in the modal dialog and sets the width and height of the modal dialog specified by the width and height parameters, respectively.