change href of a a tag in javascript code example
Example: javascript set attribute href
var a = document.getElementById('myElementID');
a.href = "http://www.mywebsite.com";
var a = document.getElementById('myElementID');
a.href = "http://www.mywebsite.com";