JavaScript: The Definitive Guide

25.155. HTMLDocument.writeln( ): append HTML text and a newline to an open document

DOM Level 0

25.155.1. Synopsis

void writeln(String text);

25.155.1.1. Arguments

text

The HTML text to be appended to the document.

25.155.2. 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.

25.155.3. See Also

HTMLDocument.write( )

Категории