SharePoint - How to Create Hyperlinks to a Pop-Up Dialog

Do you like those cool SharePoint 2010 shadowbox pop-up dialogs?

So do I, since it means less page navigation and general confusion for end-users. The problem is when you want to create your own custom hyperlinks from quick launch or throughout your own pages.

There are several blogs out there that show how to accomplish this using JavaScript snippets in CEWPs, etc. But there is actually a much easier way to do it using a built-in JavaScript feature of SharePoint.

Use this in your HTML

<a href="javascript:OpenPopUpPage('http://bing.com');">Test Link</a>

 Note: Obviously, replace the Bing URL with your own.


Post a Comment