# Scrolling to Footer

**URL:** <https://forum.wixstudio.com/t/scrolling-to-footer/10790>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [February 22, 2021, 11:31am UTC](https://forum.wixstudio.com/t/scrolling-to-footer/10790 "2021-02-22T11:31:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tal18574](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tal18574/32/7688_2.png) [@tal18574](https://forum.wixstudio.com/u/tal18574)\
**Post date:** [February 22, 2021, 11:31am UTC](https://forum.wixstudio.com/t/scrolling-to-footer/10790/1 "2021-02-22T11:31:10Z")

</div>

Hi

Can someone please help me with writing a code that once a button is clicked will scroll the page to a strip inside the footer? (unfortunately scroll to bottom does not work here).

I’ve already [found the code](https://www.wix.com/velo/reference/$w/postpage/scrollto) for scrolling to a specific element in the page

Thanks!  
Tal

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [February 22, 2021, 11:53am UTC](https://forum.wixstudio.com/t/scrolling-to-footer/10790/2 "2021-02-22T11:53:47Z")

</div>

You probably will have to write this code on your MASTER-PAGE.

Create/set an ANCHOR into your FOOTER & put in this CODE. Should normaly work (not tested).

```javascript
$w.onReady(()=>{
	$w('#myElement').onVieportEnter(()=>{
		$w('#anchor1').scrollTo()}
	})
})

```

You can also use → onVieportLeave or onClick event.

Here an example…  
[https://russian-dima.wixsite.com/meinewebsite/reading-position](https://russian-dima.wixsite.com/meinewebsite/reading-position)
