Name
HTMLDocument.write( ) — append HTML text to an open document
Availability
DOM Level 1 HTML
Synopsis
void write(String text
);
Arguments
-
text
The HTML text to be appended to the document.
Description
This method appends the specified HTML text to the document, which
must have been opened with the open( )
method and
must not yet have been closed with close( )
.
See Document.write( ) in the client-side reference section for complete details, but note that this standardized version of that Level 0 method accepts only a single string argument, not an arbitrary number of arguments.
See Also
HTMLDocument.open( ); Document.write( ) in the client-side reference section
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.