I know this question has been asked before, but after a search on the web I can\'t seem to find a straight forward answer.
the HTML
window.location = document.getElementById('myAnchor').href