A tab control has one event exposed, TabStateChange, which triggers when the display state of the tab is changed. If required, we can add our JavaScript function to this event using the Tab Properties dialog or we can use the addTabStateChange method to associate our JavaScript function with this event.