How to create modal popup in Sharepoint I want to put 3 or 4 times java script promth or alerts in the site. How should I made them ?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
Following is the way to show modal dialog in SharePoint, Below is the JavaScript with the help of which we can open a Modal Dailog Pop Up of Sharepoint 2010.
Call the Javascript on Button click and the modal Pop Up will pops up with the Page of Specified URL. btnOpenPopUp.Attributes.Add("onClick", "javascript:OpenDialog(‘/_layouts/MyAppPage/MyPage.aspx’);");
And if you want to create Alert box or Information box please follow the steps given in the below blog, http://www.tekritisoftware.com/sharepoint-custom-modal-pop-up-confirmation-dialog-box Hope this helps, On Script Part
Html:
Change the things according to your logic. |
|||||||||||||||
|
