How would i have another button send a selected anchor or link?

Hi,
I’m trying to have a set of buttons go to different links, but the links dont execute till a go button is clicked.

I made this little mock-up of how i would want it to work.
Im not sure how to go about it though.
Thanks a lot.