Related Items
Method of document.
See the close, clear, open, and writeln methods.
(Method)
Writes one or more lines to a document window, followed by a newline character.
document.writeln(string)
Like its cousin write, writeln can include HTML tags and JavaScript expressions, including numeric, string, and logical values. If writein is called from an event handler, the current document is cleared if a new window is not created for the output.
HTML ignores the newline character, unless it is used within <PRE> tags.
Method of document.
See the close, clear, open, and write methods.