See also: html, head, title

Encloses the passed information in an BODY tag (<body></body>)

Syntax

JSV_body(expD [, expB])

Prototype

expD.BODY([expB])

Returns

The body function returns the passed information in an BODY tag.

Parameters

The body function uses the following arguments.

Argument Description
expD The information to be enclosed by the BODY tag. The BODY element contains the document body. BODY is required in non-frames documents, but its start and end tags are always optional. In frames documents, BODY must be contained within the NOFRAMES element, if NOFRAMES is used.
expB Optional. The attributes that define various properties for the element.

Remarks

The BODY element contains the document's content. The content should be contained within block-level elements or SCRIPT elements, though HTML 4.0 Transitional also allows inline elements directly within BODY.

See the Web Design Group HTML 4.0 Reference on the document body tag for more information.

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() {
    var limerick = 
        'There was a young woman named Bright<BR>' +
        'Whose speed was much faster than light.<BR>' +
        'She set out one day<BR>' +
        'In a relative way,<BR>' +
        'And returned on the previous night.';
    var documentData = JSV_html( JSV_head( JSV_title('Cowabunga!') ) + JSV_body(limerick) );
    if ( !JSV_isWindowOpen(documentWindowName) ) {
        var dummy = JSV_openWindow(documentWindowName, '', documentWindowAttributes, false);
    }
    JSV_documentWrite(documentWindowName, documentData);
    JSV_documentClose(documentWindowName);
    JSV_focusWindow(documentWindowName);
}

produce when the button is clicked: