Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 653
نمايش فراداده

Availability

DOM Level 1 HTML

Synopsis

void writeln(String text);

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 can be useful when writing the content of a <pre> tag, for example.

See Also

Document.writeln( ) in the client-side reference section