asp.net.ph

Skip Navigation Links

writeln Method

DHTML Methods


Writes a string of text followed by a newline character to the document stream.

Syntax

document.writeln ( "sText" ) 
Parameters

sText Required. String specifying the text and/or HTML tags to be parsed into the document structure.

Return Value

No return value.

Remarks

This method writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. The text is parsed into the document's structure model.

In HTML, the carriage return is ignored unless it occurs within preformatted text.

Note that document.writeln in intrinsic event handlers create and write to a new document rather than modifying the current one.

Applies To

document



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note