See also: html, title, body

Encloses the passed information in an HEAD tag (<head></head>)

Syntax

JSV_head(expH)

Prototype

expH.HEAD()

Returns

The head function returns the passed information in an HEAD tag.

Parameters

The head function uses the following arguments.

Argument Description
expH The information to be enclosed by the HEAD tag. The HEAD element contains header information about the document, such as its title, keywords, description, and style sheet. HEAD is required in all documents, but its start and end tags are always optional. The HEAD element is followed by the BODY in HTML 4.0 Strict and Transitional documents; in HTML 4.0 frameset documents, the HEAD is followed by a FRAMESET element.

Remarks

Content in the HEAD is generally not rendered, with the exception of the required TITLE element. If the </HEAD> end tag is omitted, the first BODY or FRAMESET element infers the end of the HEAD.

See the Web Design Group HTML 4.0 Reference on the document head 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: