Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

generate html with javascript


let elem = document.getElementById("the tag you want to change code of");
elem.innerHTML = "<p>Hello</p>";
document.innerHTML += '<a href="youtue.com">click me !</a>';
 
PREVIOUS NEXT
Tagged: #generate #html #javascript
ADD COMMENT
Topic
Name
3+3 =