Answers for "setattribute href"

8

javascript set attribute href

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

set attribute javascript

Element.setAttribute(name, value);
Posted by: Guest on March-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language