Question:

"document.writeIn" or "document.write"?

by  |  earlier

0 LIKES UnLike

I recently got a book on javascript and I saw that they were using the object "writeIn".....................What does this object do?

 Tags:

   Report

1 ANSWERS


  1. The 'document.writeln' function is the same as 'document.write' except it adds a new line at the end. For example:

    <pre>

    <script type="text/javascript"><!--

    document.write ('Hi,');

    document.write ('there!');

    //--></script>

    </pre>

    will produce---->

    Hi there!

    <pre>

    <script type="text/javascript"><!--

    document.writeln ('Hi,');

    document.writeln ('there!');

    //--></script>

    </pre>

    will produce---->

    Hi

    there!

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.