DEV Community

Discussion on: Scroll to Top Button using HTML CSS & JQuery

Collapse
 
cwraytech profile image
Christopher Wray

Yes. It’s also better for the user experience because that is what you are doing… Moving to another section on the page. With JavaScript and doing it this way it could be very confusing to screen readers.

Thread Thread
 
starryepidemic profile image
StarryEpidemic

Also bootstrap is way easier than that method and almost does it better than that method so we wont have to unnecessarily debug the code if smth goes wrong just go to the docs view the syntax type it out with the classes...