How to use DOM Object Writeln() in JavaScript
In this article I am going to explain about DOM object Writeln() Method in JavaScript.
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
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