Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 652
نمايش فراداده

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