See also: html, head, title, body

Creates a blank document.

Syntax

JSV_createBlankDocument()

Prototype

n/a

Returns

The createBlankDocument function returns a blank document
(i.e., <html><head><title>Untitled</title></head><body></body></html>)

Parameters

n/a

Remarks

See the Web Design Group HTML 4.0 Reference for more information on the structure of an HTML document.

Dependencies

n/a

Example

The following lines of code

var documentHandle = null;
var documentWindowName = "JSV_DOC";
var documentWindowAttributes = "status=1,scrollbars=1,resizable=1,width=400,height=220,left=10,top=10,screenX=10,screenY=10";
function htmlDocument() {
    if ( !JSV_isWindowOpen(documentWindowName) ) {
        var dummy = JSV_openWindow(documentWindowName, '', documentWindowAttributes, false);
    }
    JSV_documentWrite(documentWindowName, JSV_createBlankDocument());
    JSV_documentClose(documentWindowName);
}

produce when the button is clicked: