writeln Method | Internet Development Index |
Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
Syntax
document.writeln(sText)
Parameters
sText Required. String that specifies the text and HTML tags to write.
Return Value
No return value.
Remarks
In HTML, the carriage return is ignored unless it occurs within preformatted text.
You should not use the write or writeln methods on the current document after the document has finished loading unless you first call the open method, which clears the current document's window and erases all variables.
Standards Information
This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
document
See Also
write, open