Determines if the Web page is in a frame.

Syntax

JSV_inFrame()

Returns

The JSV_inFrame function returns true if the Web page is in a frame; otherwise, false.

Parameters

n/a

Remarks

n/a

Dependencies

n/a

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 top left frame for the use of this function) when the button is clicked