Answers for "javascript modify href"

4

change href for a tag using JS

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

javascript modify href attr

link.href = link.href + '?param1=' + input.value;
Posted by: Guest on February-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language