I'm a professional writer and software developer with more than 10 years of experience. I have worked for a lot of businesses and can share sample works with you upon request. Chat me up and let's get started.....
Where the javascript is a client-side as well as a server-side scripting language that can be inserted into HTML pages and is understood by web browsers. The JavaScript is also an Object-based Programming language.
<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>
Liked By
Write Answer
How can add new elements dynamically in javascript?
Join MindStick Community
You have need login or register for voting of answers or question.
Rahul Roi
16-Mar-2021Where the javascript is a client-side as well as a server-side scripting language that can be inserted into HTML pages and is understood by web browsers. The JavaScript is also an Object-based Programming language.