writeln method

This topic has not yet been rated - Rate this topic

Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.5

Syntax

var retval = document.writeln(psarray);

Parameters

psarray [in]

Type: SAFEARRAY

A String that specifies the text and HTML tags to write.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

Remarks

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

Do not use the write method or the writeln method on the current document after the document has finished loading unless you first call the open method, which clears the current document window and erases all variables.

Note  When document.write or document.writeln is used in an event handler, you must also use document.close.

See also

document
Reference
write
open

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.