Writing into the HTML output using Javascript

Javascript / Overview of Javascript

291

Program:

<!DOCTYPE html>
<html>
<body>

<h2>document.write()</h2>
<p>My first paragraph.</p>

<p>Never call document.write after the document has finished loading.
It will overwrite the whole document.</p>

<script>
document.write(5 + 6);
</script>

</body>
</html> 

Output:

no

Explanation:

no

This Particular section is dedicated to Programs only. If you want learn more about Javascript. Then you can visit below links to get more depth on this subject.