Me.WebTab1.ClientEvents.TabMoved = "WebTab1_TabMoved"
this.WebTab1.ClientEvents.TabMoved = "WebTab1_TabMoved";
// The client event TabMoved takes two parameters sender and e // sender is the object which is raising the event // e is the TabMovedEventArgs function WebTab1_TabMoved(sender, e) { //Gets the initial index of the tab var tabIndex = e.get_tabIndex(); //Gets the index of the tab when it is moving var tabVisibleIndex = e.get_tabVisibleIndex(); //Assuming you have a label called labelOutput on the form var label = $get('labelOutput'); label.innerHTML = "Tab Index : " + tabIndex + " ; Tab Visible Index : " + tabVisibleIndex; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2