Click here to Skip to main content
       

JavaScript

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralStop a page moving upwardsmemberoffroaderdan18 Jul '12 - 23:24 
Hi guys,
I have a small question, I am creating a website and have created a table using ul elements. (I used ul as this was easier to animate using javascript and it does what i want.... I did try using tables and it messed up.
 
When I click on one of the ul items the page stays where it is. However when i click another one the page then shoots to the top. I have read around and some people say do the following
 
<a href = "#!" >blah</a>
 
However this still sends the page to the top.
If any body knows any tips/tricks as to how to solve this it would be mighty helpful.
GeneralRe: Stop a page moving upwards Pinmemberjkirkerx19 Jul '12 - 8:36 
You must of fired a postback to the same page, and the page scroll position reset back to the top.
 
Hyperlinks are designed to navigate to a new page, unless your using the hyperlink to scroll the page to a designated position.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid