Chris Jones
asked on
Prevent page from scrolling to top
Hello,
i need some help with some javascript and or jquery that can prevent users form scrolling to the very top of my web page i need the top to always stop at about 74pixels
i need some help with some javascript and or jquery that can prevent users form scrolling to the very top of my web page i need the top to always stop at about 74pixels
ASKER
i am not sure if this will work the user can scroll with there mouse i need some java to set the boundaries maybe so the user cant scroll to the very top.
ASKER
just an update i did try the code and i could still scroll to the top.
sorry my bad :(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
your exampled worked that's what i was trying to achieve the header has a slight issue when it scrolls back so a stop gap prevent from scrolling to the very top.
Not clear. Is there a question or was that just an update?
ASKER
this was just an update
it does what you need :)
http://bavotasan.com/2013/prevent-default-behaviour-of-hashed-anchor-tag-with-jquery/