Answers for "how to create a paragraph in javascript dynamically"

5

how to create a paragraph in javascript dynamically

<html> 
<head> 
<title>t1</title> 
<script type="text/javascript"> 
	function addNode() 
     {var newP = document.createElement("p"); 
	  var textNode = document.createTextNode(" This is a new text node"); 
	  newP.appendChild(textNode);
      document.getElementById("firstP").appendChild(newP); } 
</script> </head> 
<body> <p id="firstP">firstP<p> </body> 
</html>
Posted by: Guest on August-02-2020
0

how to create a paragraph in javascript dynamically

fghfdghfghfghfghfgh
Posted by: Guest on August-25-2021
0

how to create a paragraph in javascript dynamically

fvgjfgjfgkj
Posted by: Guest on August-25-2021

Code answers related to "how to create a paragraph in javascript dynamically"

Code answers related to "Javascript"

Browse Popular Code Answers by Language