Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change attribute link in javascript

function changeLink(){
    document.getElementById("mylink").href = "http://facebook.com";
    document.getElementById("mylink").innerHTML = "facebook";
    }
 
PREVIOUS NEXT
Tagged: #change #attribute #link #javascript
ADD COMMENT
Topic
Name
4+2 =