how to get an html anchor effect with JQuery

Posted by frosty on Stack Overflow See other posts from Stack Overflow or by frosty
Published on 2010-04-01T13:09:42Z Indexed on 2010/04/01 13:13 UTC
Read the original article Hit count: 356

Filed under:

I have a click handler, which has "event.preventDefault". There is whole lot of logic that occurs within this function. At the end of this logic i would like the page to scroll up to the top. ie the same effect as an anchor. ie "

    $('.vod-playlist-film a').bind("click", function(event) {

    // some logic
    // now i need the browser to goto the top of the page

    event.preventDefault();
});

© Stack Overflow or respective owner

Related posts about jQuery