(PCC)::[How-to-Writing-JavaScript-code-into-the-HTML-output]::[js]
<!DOCTYPE html> <html> <body> <h2>My First Web Page</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>
My first paragraph.
Never call document.write after the document has finished loading. It will overwrite the whole document.