Thread
:
Using onclick to change image
View Single Post
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
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;"
Users who have thanked devnull69 for this post:
taypandt
(09-27-2012)
devnull69
View Public Profile
Find More Posts by devnull69