Javascript innerHTML


<html> <body>
<p id="n1">This is n1.</p>
<p id="n2">This is n2.</p>
<p id="n3">This is n3.</p>
<script>
document.getElementById("n2").innerHTML = "<h2>Hello World!</h2>";
</script> </body> </html>



Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου