Tabsheet tab click

Is there any way to reproduce click on tab but with javascript or something else that is like client(mouse) click ?