For a text link that replaces itself each time it is clicked:
You can store the result in an attribute:
If you don’t want a rotating list, use a sequence instead. The final option won’t be a link.
As a variation on this, you can use a section link as the final option in a sequence.