To alternate back and forth between two states by pressing or clicking the same button. For example, the "Last" button on a TV remote control alternates between the last two TV channels selected. In Windows, pressing Alt-Tab switches the user between the last two open application windows that were selected. See
toggle switch.