Search DaTutorials:  
HOME
DHTML Reference
Introduction
Reference

write Method


Writes one or more HTML expressions to a document in the specified window.

Syntax

document.write(sText)

Parameters

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

Return Value

No return value.

Remarks

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

Note  When document.write or document.writeln is used in an event handler, document.close should also be used.

Standards Information

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

Applies To

document

See Also

writeln, open

     Credit Cards | Secured Loan | Mortgages | Secured Loans | Personal Loans
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp