The write() JavaScript Method

By: Dusty Arlia
Published on August 8, 2012
Last Updated on Wednesday, July 15, 2015 at 7:03 PM
Total Updates: 6

The write() JavaScript method literally writes out whatever you place between its parentheses. This is a method of the document object. For example:

<script>
document.write('<h1>Insert This Title</h1>');
</script>

You need to include your HTML because you are "writing" to an HTML document.

Comments:

Ad: