showing results for - "generate html with javascript"
Leah
29 Jun 2016
1
2let elem = document.getElementById("the tag you want to change code of");
3elem.innerHTML = "<p>Hello</p>";
4document.innerHTML += '<a href=\"youtue.com\">click me !</a>';