javascript a href attribute
snippet in javascript

javascript a href attribute

user256


 document.getElementById("myAnchor").href = "http://www.cnn.com/";