How to use DOM Object Writeln() in JavaScript

In this article I am going to explain about DOM object Writeln() Method in JavaScript.
  • 1349

JavaScript DOM Object Writeln() Method

JavaScript Writeln() method also use for write message but main purpose of Writeln() method display message or output in new line.

Syntax

document.writeln("message")

Example // Simple display a message

<html>

<head>

</head>

<body>

    <pre>

<script type="text/javascript">

    document.writeln("Hello India.....");

    document.writeln("Hello India.....");

    document.writeln("Hello India.....");

    document.writeln("Hello India.....");

  

</script>

</pre>

</body>

</html>

 

Output

 

 newline.gif

 

You may also want to read these related articles: here
 
Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2013 dotNetheaven. All rights reserved.