"JAVASCRIPT" change "href of element code example Example: change href for a tag using JS document.getElementById("myAnchor").href = "http://www.cnn.com/";