The JSV_documentClose function closes a stream opened with the JSV_documentOpen function. If the stream was opened to layout, the JSV_documentClose function forces the content of the stream to display.

Syntax

JSV_documentClose(winName)

Returns

n/a

Parameters

The JSV_documentClose function uses the following arguments.

Argument Description
winName This is the target name of the new window. A string specifying the window name to use in the TARGET attribute of a FORM or A tag. winName can contain only alphanumeric or underscore (_) characters. Used to load another document into the window with JSV_openWindow or manipulate the document/window with other JavaScript Vision window management functions.

Remarks

Similar to the close method of document but used within the context of JavaScript Vision window management.

Dependencies

n/a

Example

The following lines of code

function myWindowTest() {
    myWindow = "AT_Sam_Jose"
    var dummy = JSV_openWindow(myWindow, '', 'menubar=1,status=1,scrollbars=1,resizable=1,width=580,height=240,left=40,top=40,screenX=40,screenY=40');
    JSV_documentClose(myWindow, '<P ALIGN="CENTER">What does the A. T. stand for in A. T. Sam Jose? Atcheson Topeka.</P>');
    JSV_documentClose(myWindow, '<P ALIGN="CENTER">Cowabunga!</P>');
    JSV_documentClose(myWindow);
}

produce a new window to which the HTML information is written