I am trying to create a toggle button to load a different URL in a target frame each time the button is pressed, but I have no more hairs to pull out of my head, that is how frustrated I currently am .

e.g. Button switches from "On" to "Off" and back to "On" again
When the button is pressed in the ON state <a href="<linkA>" target"footer"> should be processed and <a href="<linkB>" target"footer"> when the OFF state is active.

I realy hope somebody is able to help me with this. Help is much appreciated!