Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript set attribute href

var a = document.getElementById('myElementID');
    a.href = "http://www.mywebsite.com";
 
PREVIOUS NEXT
Tagged: #javascript #set #attribute #href
ADD COMMENT
Topic
Name
6+9 =