Name
HTMLDocument.writeln( ): append HTML text and a newline to an open document â DOM Level 0
Synopsis
void writeln(Stringtext
);
Arguments
-
text
The HTML text to be appended to the document.
Description
This method is like HTMLDocument.write( )
, except that it
follows the appended text with a newline character, which may be
useful when writing the content of a <pre>
tag, for example.
See Also
HTMLDocument.write(
)
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.