Determines the zero-based index of the frame name (case insensitive).

Syntax

JSV_getFrameReference(frameName)

Returns

The zero-based index of the named frame.

Parameters

The JSV_getFrameReference function uses the following arguments.

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

Remarks

n/a

Dependencies

JSV_frameCount

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 right frame for the top right frame index) when the button is clicked