# Did we lose webcontainer scroll?

**URL:** <https://forum.xojo.com/t/did-we-lose-webcontainer-scroll/64167>\
**Category:** Web\
**Created:** [June 28, 2021, 2:24am UTC](https://forum.xojo.com/t/did-we-lose-webcontainer-scroll/64167 "2021-06-28T02:24:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Scanlan](https://forum.xojo.com/user_avatar/forum.xojo.com/john_scanlan/32/472_2.png) [@John\_Scanlan](https://forum.xojo.com/u/John_Scanlan)\
**Post date:** [June 28, 2021, 2:24am UTC](https://forum.xojo.com/t/did-we-lose-webcontainer-scroll/64167/1 "2021-06-28T02:24:33Z")

</div>

Did we lose programmatic scrolling of a webcontainer in web 2.0?

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [June 28, 2021, 4:14am UTC](https://forum.xojo.com/t/did-we-lose-webcontainer-scroll/64167/2 "2021-06-28T04:14:43Z")

</div>

I wrote some methods to do this a while back. If you have a scenario that I didn’t account for, let me know.

> [@Scrollto](https://forum.xojo.com/t/scrollto/62052/6):
>
> Here are a few methods you can use. Add to a module and call as outlined in comments: Public Sub scrollTo(extends c as WebContainer, X as Integer, Y as Integer) '// myContainer.scrollTo(10,100) if Session \<\> Nil then Session.ExecuteJavaScript( "var container = document.getElementById('" + c.ControlID + "');container.scrollTo(" + X.ToString + "," + Y.ToString + ");" ) end if End Sub Public Sub scrollToBottom(extends c as WebContainer) '// myContainer.scrollToBottom if Session \<\> N…

---

<div class="post-metadata">

**Author:** ![John\_Scanlan](https://forum.xojo.com/user_avatar/forum.xojo.com/john_scanlan/32/472_2.png) [@John\_Scanlan](https://forum.xojo.com/u/John_Scanlan)\
**Post date:** [June 28, 2021, 6:09pm UTC](https://forum.xojo.com/t/did-we-lose-webcontainer-scroll/64167/3 "2021-06-28T18:09:29Z")

</div>

There’s no scrollTo command in the Web 2.0 version.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [June 28, 2021, 6:10pm UTC](https://forum.xojo.com/t/did-we-lose-webcontainer-scroll/64167/4 "2021-06-28T18:10:36Z")

</div>

No, but if you click the link I posted above, you’ll see where I supplied a replacement.
