Write Javascript code to change HTML element. (Using getElementById .)
Programme:-
<html>
<body>
<p Id="demo"> Hello , Good Morning </p>
<script language = "javascript">
document.getElementById("demo").innerHTML= "Hi, Good night"
</script>
</body>
</html>
0 Comments
If anyone has Doubts or suggestions please let me know