Answers for "how to set href in javascript"

4

change href for a tag using JS

document.getElementById("myAnchor").href = "http://www.cnn.com/";
Posted by: Guest on April-02-2021
1

a href javascript

<a href="#" onclick="myJsFunc();">Run JavaScript Code</a>
Posted by: Guest on June-22-2021

Code answers related to "how to set href in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language