The JSV_documentWrite function displays any number of expressions in the named document window. You can specify any JavaScript expression with the JSV_documentWrite function, including numeric, string, or logical expressions.

Syntax

JSV_documentWrite(winName, expW)

Returns

n/a

Parameters

The JSV_documentWrite 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.
expW The HTML expressions that is to be written to a document in the named window.

Remarks

Similar to the write 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_documentWrite(myWindow, '<P ALIGN="CENTER">What does the A. T. stand for in A. T. Sam Jose? Atcheson Topeka.</P>');
    JSV_documentWrite(myWindow, '<P ALIGN="CENTER">Cowabunga!</P>');
    JSV_documentClose(myWindow);
}

produce a new window to which the HTML information is written