I'm working with a client and I'm only allowed to use javascript (don't ask why as I have no idea). They don't have jquery setup and they don't want it (once again I have no idea why)
Anyways there is a link on the page that they want to change the href to on page load. Below is the link structure.
<a class="checkout_link" title="Checkout" href="current_url">Checkout</a>
I was wondering if there is any way to change the href on page load using basic javascript for the link above? If so how would I go about doing it?
Thanks
Update to include more ways to get at the link(s)
to be even more selective:
Lastly newer browsers have a classList