How to make an if/then for a selected link button?

I need one that will look at the currently selected (by tabbing to it) area on a web page. It is sometimes a particular link button with text on it and that’s what it needs to identify first without clicking it. Using the clipboard is probably out because apparently I can’t select the text from the button without manually selecting that text which won’t work for the macro.

I’m trying to think of some way to either have the if/then identify the text (preferably since it’s always the same) or link (less preferable since the link isn’t always the exact same, unless I can just use the part of it that is always the same to identify for the if/then) to decide its next course of action.