# Help creating a jump to top button

**URL:** <https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118>\
**Category:** Development\
**Created:** [30 يوليو 2017، 7:42م UTC](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118 "2017-07-30T19:42:55Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)\
**Post date:** [3 أغسطس 2017، 1:19م UTC](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118/16 "2017-08-03T13:19:03Z")

</div>

Ha. Personally that never even occurred to me. I was always fiddling with the progress slide bar to scroll back to the top. So to @tophee’s point, I would be surprised if new users discovered this.

Thx @david for the back. Will try it out. I may try to merge it with some JS logic so that only applies for topics…

I haven’t tested this yet. Not sure if there’s a better way in javascript to send users to the top. Definitely would appreciate help from someone with JS skills.

```
if(window.location.href.indexOf(“/t/“) > -1) {
       topurl=Discourse. __container__.lookup('controller:topic').send('jumpToIndex', 1)
    }
else {topurl=“#top”}
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/help-creating-a-jump-to-top-button/67118)._
