See also: head, title, body |
Encloses the passed information in an HTML
tag (<html></html>)
JSV_html(expH)
expH.HTML()
The html function returns the passed information enclosed in an HTML
tag.
The html function uses the following arguments.
Argument | Description |
expH |
The information to be enclosed by the HTML tag.
The HTML element contains the HTML document,
made up of the HEAD followed by the BODY ,
except in frameset documents where the FRAMESET
element replaces the BODY .
|
See the Web Design Group HTML 4.0 Reference on the HTML document 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.