Determines if the named frame exists.

Syntax

JSV_doesFrameExist(frameName)

Returns

The JSV_doesFrameExist function returns true if the frame exists; otherwise, false.

Parameters

The JSV_doesFrameExist function uses the following arguments.

Argument Description
frameName The name of the frame, i.e., the NAME attribute of the FRAME tag.

Remarks

n/a

Dependencies

JSV_getFrameReference

Example

The following lines of code

var myWindowHandle = null;
var myWindow = "FrameDemo";
var myAttributes = 'status=1,scrollbars=1,resizable=1,width=580,height=240,left=40,top=40,screenX=40,screenY=40';

function openFramesetWindow() {
    myWindowHandle = JSV_popWindow(myWindowHandle, myWindow, 'index.htm', myAttributes, false);
    if (window.focus) myWindowHandle.focus();
}

produce a windows with four frames (see bottom left frame for the use of this function) when the button is clicked