href="javascript:;.html" code example Example: link href javascript document.getElementById("Element").href = "http://example.com/";