Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
![]() |
Syntax
HRESULT retVal = object.writeln(psarray);
Parameters
psarray [in]
Type: SAFEARRAYA 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.
Standards information
Remarks
In HTML, the carriage return is ignored unless it occurs in preformatted text.
Note When document.IHTMLDocument2::write or document.IHTMLDocument2::writeln is used in an event handler, you must also use document.IHTMLDocument2::close.
See also
Reference