Program Tab Button to Scroll to the Top when that tab is active

Hey,

Is there a solution to make it so that if I am on the active page then that tab button can scroll the the top when clicked?