See also: html, head, body |
Encloses the passed information in a TITLE
tag (<title></title>)
JSV_title(expT)
expH.TITLE()
The title function returns the passed information in a TITLE
tag.
The title function uses the following arguments.
Argument | Description |
expT |
The information to be enclosed by the TITLE tag.
The TITLE element gives the document's title.
Each document must have exactly one TITLE within the HEAD .
TITLE contains plain text and entities; it may not contain other markup.
|
A good TITLE
should be short and specific to the document's
content so that it can be used as a title for a user's bookmark,
a title for the display window on visual browsers, and a link from
a search engine.
A suggested limit for the number of characters in a TITLE
is 60.
See the Web Design Group HTML 4.0 Reference on the document title tag for more information.
n/a
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:
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.