homepage Welcome to WebmasterWorld Guest from 107.22.127.92
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library : Charter : Moderators: whoisgregg

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved