Creating PopUp dialog boxes in SharePoint 2010

You wonder how to create pop up dialog boxes in SharePoint 2010? If you have a page of yours and you don’t want the user to navigate to another page to see it. You only need an anchor to be able to do so. just write this line of code in your page:

<a href=”javascript:OpenPopUpPage(‘http://…….’)” mce_href=”javascript:OpenPopUpPage(‘http://…….’)”> Open PopUp </a>

This will open your page without navigating away from the page you are on.