Open a Page in Popup Modal Dialog Window in SharePoint 2013

Requirement: Open a page in Modal Popup window in a SharePoint 2013 web site.

JavaScript to open popup in sharepoint 2013

Solution:

The requirement is to open the “Terms and Conditions” page in a popup window on clicking the link. Used this HTML code to open a page in a modal popup window in SharePoint 2013:

<a href="#" onclick="OpenPopUpPageWithTitle('http://crescent.com/sitepages/terms.aspx', null, 600, 600,'Terms & Conditions')"/> Terms and Conditions </a>

and here is the result:
SharePoint 2013 open page in popup

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

3 thoughts on “Open a Page in Popup Modal Dialog Window in SharePoint 2013

  • August 6, 2021 at 9:59 PM

    1) Where the title Terms & Conditions appears, I have nothing, 2) right below that space I have a line across the page. Is there a parameter to just remove the title space?

    Reply
  • September 6, 2019 at 9:33 AM

    $(“#s4-ribbonrow”).hide();

    Reply
  • December 22, 2016 at 6:21 PM

    is thee a way to remove the ribbon when using this in SharePoint 2013?

    Reply

Leave a Reply