Answers for "on the new element, add an hrefattribute with its value set to the href property of the "link" object. in the dom"

10

javascript set attribute href

var a = document.getElementById('myElementID');
    a.href = "http://www.mywebsite.com";
Posted by: Guest on December-04-2019

Code answers related to "on the new element, add an hrefattribute with its value set to the href property of the "link" object. in the dom"

Code answers related to "Javascript"

Browse Popular Code Answers by Language