SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast weicool's Avatar
    Join Date
    Jul 2004
    Location
    USA
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link NOT Returning False

    For some reason, I can't get this to work properly:

    Code JavaScript:
    <a href="#" onclick="foo('bar'); return false;">FOO</a>

    What am I doing wrong here? I simply don't want the link to be followed. I just want to call foo()...
    Pokemon Dream - The greatest Pokemon website of all...

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2007
    Posts
    345
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That looks fine. Maybe there is a problem with the foo function which stops the script from finishing.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •