Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 problem with scrolling up !

View previous topic View next topic Go down 
AuthorMessage
Scars
Member
Member
avatar

Posts : 16
Join date : 2011-03-09

problem with scrolling up ! Empty
PostSubject: problem with scrolling up !   problem with scrolling up ! EmptyThu Jun 23, 2011 8:03 am

Hi evey one

I have a problem with javascript . For example I have a link , something like this :<a href="#" title="" class="rating like" onclick="MakeRequestpos()">hi!</a>

When I click on it , the page will scroll up and it's bother me . for example , I scroll the page down and When I click on the link , it'll scroll up .

How can I solve it ?

thanks
Back to top Go down
UsernameChange
Staff
Staff
avatar

Posts : 16
Join date : 2011-03-09

problem with scrolling up ! Empty
PostSubject: Re: problem with scrolling up !   problem with scrolling up ! EmptyThu Jun 23, 2011 8:04 am

You need to return false from the onclick or the page will be reloaded because of the href="#".

So:
Code:

<a href="#" title="" class="rating like" onclick="MakeRequestpos(); return false;">hi!</a>
Back to top Go down
 

problem with scrolling up !

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» PC problem
» Ajax problem
» Gruff graphs problem
» Problem with delete command
» Problem w/ text adventure

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: problem with scrolling up ! Edit-trash Useless :: Trash-