View Single Post
Old 09-27-2012, 09:33 AM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
If you are using onclick on an <a> anchor tag you'll need to make sure that the default action of the link will be prevented. This can be easily achieved by returning "false" from the onclick handler
Code:
onclick="scrollUp(); return false;"
devnull69 is offline   Reply With Quote
Users who have thanked devnull69 for this post:
taypandt (09-27-2012)