JavaScript - writeIn() method

revision:


Category : document

Writes a string of text followed by a newline character to a document.

Use of the document.writeln() method is strongly discouraged.

Syntax :

        document.writeln(exp1, exp2, ..., expN)
    

Parameters:

exp1, . . . : optional. The output stream. Multiple arguments are appended to the document in order of occurrence.

Examples:

            document.writeln("<p>enter password:</p>");
        

Practical examples

example:
code:
                    
                

example:
code:
                    
                

example:
code: