1
2
3
4
5
6
7
8
9
|
<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>
|
Thursday, May 18, 2017
Show the code for adding new elements dynamically?
Welcome to my blog
Here you will find a variety of articles showcasing the latest news on LEARNING & EARNING.LEARNING & EARNING TUBE is the coolest Earning track that you are looking for.My channel is all about teaching you insanely actionable LEARNING & EARNING that you use to grow your business.
If you want to be the top earner by learning, make sure to subscribe to my blog right now. As you can see, my blog publishes news that focus on LEARNING & EARNING base studies, real life examples, actionable tips & tricks etc.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment