treehouse : what would you like to learn today?
Web Design Web Development iOS Development

jQuery PopUps, Proper Linking?

  • Hi there,

    How would you go about properly linking a pop-up window? For now I have:

    <a href="#" id="pop-up">Contact</a>


    But I realized, this link only works if you have Javascript enabled. So I did this:

    <a href="/contact/" id="pop-up">Contact</a>


    However, when I click on the link, the window pops up, then go straight to that page. How do you stop it from going to to the page is Javascript is enabled?

    I really thought Chris covered this, but I can't seem to locate it.

    - Steph
  • did you "return false;" ?
  • Aha! That's what it was, thank you. I had a brain fart :)