# Tab strip change on STARTUP Runtime

**URL:** <https://forum.inductiveautomation.com/t/tab-strip-change-on-startup-runtime/43858>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [February 26, 2021, 8:35am UTC](https://forum.inductiveautomation.com/t/tab-strip-change-on-startup-runtime/43858 "2021-02-26T08:35:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmiroclosa](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gmiroclosa/32/21572_2.png) [@gmiroclosa](https://forum.inductiveautomation.com/u/gmiroclosa)\
**Post date:** [February 26, 2021, 8:35am UTC](https://forum.inductiveautomation.com/t/tab-strip-change-on-startup-runtime/43858/1 "2021-02-26T08:35:45Z")

</div>

Hi,  
I need the script in order to change the tab strip to a “Button1” when the application starts.  
I try to put the code on Client Event / Startup / :  
ActWindow = system.gui.getWindow(‘Commons/Win\_Navigation’)  
AuxTabStrip = ActWindow.rootContainer.getComponent(“TabStripCtrl”)  
AuxTabStrip.selectedTab = “Button 1”  
But It returns the error that getWindow is not possible on Startup.  
Any suggestion?¿ Thanks in advance,  
Guillem

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 26, 2021, 12:26pm UTC](https://forum.inductiveautomation.com/t/tab-strip-change-on-startup-runtime/43858/2 "2021-02-26T12:26:33Z")

</div>

Option 1: Make sure it’s selected in the designer, then save the project.

Option 2: Use your script in the internalFrameOpened event of the window. To get to the scripting properties of the window, right-click on its name in the project tree.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/a/ca21e93bca78d6a0c9e034b8a05c63c92dcb0111.png)

---

<div class="post-metadata">

**Author:** ![gmiroclosa](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gmiroclosa/32/21572_2.png) [@gmiroclosa](https://forum.inductiveautomation.com/u/gmiroclosa)\
**Post date:** [February 26, 2021, 2:23pm UTC](https://forum.inductiveautomation.com/t/tab-strip-change-on-startup-runtime/43858/3 "2021-02-26T14:23:41Z")

</div>

Option 2 much better for my issue.  
Thanks
