# Programmatically change the active tab

**URL:** <https://community.weweb.io/t/programmatically-change-the-active-tab/3470>\
**Category:** How do I?\
**Created:** [July 11, 2023, 11:22am UTC](https://community.weweb.io/t/programmatically-change-the-active-tab/3470 "2023-07-11T11:22:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesus77](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jesus77](https://community.weweb.io/u/jesus77)\
**Post date:** [July 11, 2023, 11:22am UTC](https://community.weweb.io/t/programmatically-change-the-active-tab/3470/1 "2023-07-11T11:22:56Z")

</div>

Hello!

Is it possible to programmatically change the active tab element? For example, when a page loads.

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![luka](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/luka/32/1571_2.png) [@luka](https://community.weweb.io/u/luka)\
**Post date:** [July 11, 2023, 12:29pm UTC](https://community.weweb.io/t/programmatically-change-the-active-tab/3470/2 "2023-07-11T12:29:00Z")

</div>

You can bind the active tab index in the settings of the Tab element to a variable and then change that variable on page load
