The CHROMETABINDEX() function returns the index of the selected tab in the front Google Chrome window.