Does anybody know a good javascript code for a cross-browser scroll-to-top?
I want it to be where I click an itemselector and then the page scrolls directly to top.
This could be done without any js by giving id attribute to tag you want to go to (scroll to) and than refer that id in your href attribute.
Here are two of them http://www.visibilityinherit.com/code/smooth-scroll.php
Does anybody know a good javascript code for a cross-browser scroll-to-top?
I want it to be where I click an itemselector and then the page scrolls directly to top.
This could be done without any js by giving id attribute to tag you want to go to (scroll to) and than refer that id in your href attribute.
Here are two of them http://www.visibilityinherit.com/code/smooth-scroll.php