SharePoint 2010 has lot of out of box JavaScript functions but they are not directly open. One of it and very useful function is "OpenPopUpPage" and this function is very handy in the development of SharePoint.
This function will open the new page in the Pop up window (ModalDialogBox) and when that is closed then the parent page will get refreshed. This is very similar to add new item in the list.
<a onclick="OpenPopUpPage('http://SharePointPageLink',
RefreshPage); return false;" href="">This will open the page in Pop up and will refresh the parent page when the Pop Up page is closed.
< /a>
No comments:
Post a Comment