Visit Mozilla.org

DOM:document.writeln

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

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

[edit] Syntax

document.writeln(line) 

[edit] Parameters

  • line is string containing a line of text.

[edit] Example

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

[edit] Notes

document.writeln is the same as document.write but adds a newline.

[edit] Specification

writeln