Modal dialog in SharePoint 2016 / 2013
Do you want to launch a dialog box when clicking on a link ?
This can be achieved by using the Model PopUp .Below is the code script which gives us popup in SharePoint
<script type=”text/javascript”>
function OpenDialog(URL) {
var options = SP.UI.$create_DialogOptions();
options.url = URL;
options.width = 600;
options.height = 400;
SP.UI.ModalDialog.showModalDialog(options);
}
</script>
Refer below link to launch the pop-up
<a href=”javascript:OpenDialog(‘URL of the page to be displayed here’)”>Link</a>
Modal dialog in SharePoint 2016 / 2013
Reviewed by
Srikant N
on
Tuesday, April 26, 2016
Rating:
No comments :
Thanks for your time ! Have a great day.