Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to insert html in javascript

var h = document.getElementById("myH2");
h.insertAdjacentHTML("afterend", "<p>My new paragraph</p>"); 
 
PREVIOUS NEXT
Tagged: #insert #html #javascript
ADD COMMENT
Topic
Name
3+9 =