# where can I get the code for GO TO TOP button ?

**URL:** <https://forum.kirupa.com/t/where-can-i-get-the-code-for-go-to-top-button/661448>\
**Category:** web dev\
**Created:** [September 5, 2023, 12:07pm UTC](https://forum.kirupa.com/t/where-can-i-get-the-code-for-go-to-top-button/661448 "2023-09-05T12:07:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivamgarg](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@shivamgarg](https://forum.kirupa.com/u/shivamgarg)\
**Post date:** [September 5, 2023, 12:07pm UTC](https://forum.kirupa.com/t/where-can-i-get-the-code-for-go-to-top-button/661448/1 "2023-09-05T12:07:01Z")

</div>

Hey , guys I have recently started developing website as I am beginner I am facing little problem in coding . let me explain you properly , I am designing one e-commerce site and I want to put " go to top " button on my home page . but I don’t know the code , so I was just randomly exploring different e-commerce sites then I just found one site which fits my query let me share you the screenshot :

 ![Screenshot 2023-09-05 173236](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/7/4/74ee044477c4730bd834d9d53597a9b8f0a45dfa.png)

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [September 5, 2023, 5:30pm UTC](https://forum.kirupa.com/t/where-can-i-get-the-code-for-go-to-top-button/661448/2 "2023-09-05T17:30:56Z")

</div>

This should help!

> **[Animated Scroll to Top with Easing | KIRUPA](https://www.kirupa.com/html5/animated_scroll_to_top_with_easing.htm#tutorialInformation)**
>
> Learn how to scroll users to the top of the page with a sweet animation that uses an easing equation.

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [September 6, 2023, 12:23am UTC](https://forum.kirupa.com/t/where-can-i-get-the-code-for-go-to-top-button/661448/3 "2023-09-06T00:23:32Z")

</div>

Sure, but how does that code help my spam business? (Based on the similarly themed posts I deleted that were posted around the same time. 🤔)

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [September 6, 2023, 2:42am UTC](https://forum.kirupa.com/t/where-can-i-get-the-code-for-go-to-top-button/661448/4 "2023-09-06T02:42:50Z")

</div>

Totally agree. I deleted the spam link, but this is one of those questions that may help someone in the future who stumbles here from Google 🙂
