Pop Up opening on a link click

How do i make it so when someone clicks on a link the pop up opens rather than it opening automatically on a page?