writeln method

[This documentation is preliminary and is subject to change.]

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


HRESULT retVal = object.writeln(psarray);

Standards information

Parameters

psarray [in]

Type: SAFEARRAY

A BSTR 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.

Remarks

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

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

See also

Reference
write
open

 

 

Build date: 1/25/2012

Community Additions

Show: