homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
hash and topage
Sandro87




msg:4098468
 1:34 am on Mar 16, 2010 (gmt 0)

hello I have links in the middle or in the bottom of the page that work with AJAX with

<a href="#" onclick="getContent(13);">

when I click the link the function starts but since there's the # the browser will scroll up to the top of the page. Is there a workaround to prevent this with still showing # in the link?

 

daveVk




msg:4098482
 2:30 am on Mar 16, 2010 (gmt 0)

<a href="#" onclick="getContent(13);return false;">

Sandro87




msg:4098704
 12:39 pm on Mar 16, 2010 (gmt 0)

Thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved