Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Methods
 writeln Method
writeln Method

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

Syntax

object.writeln(sText)

Parameters

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

Return Value

No return value.

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.

Standards Information

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

document, HTMLDocument Constructor

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker