If the Web page is in a frame, reloads the page in the topmost browser window, which is a document window or web browser window.

Syntax

JSV_useOnlyInFrame(frameSetPage, frameName, replace)

Returns

n/a

Parameters

The JSV_useOnlyInFrame function uses the following arguments.

Argument Description
frameSetPage The URL of the Web page that contains the FRAMESET definition (e.g., 'index.htm' or 'http://www.domain.com/index.htm').
frameName The name of the frame into which the Web page is to be loaded.
replace Optional. A Boolean value, either true (set this to true only if using Navigator 3+ or Internet Explorer 4+) or false. If true, then the current history entry is replaced with the new page being loaded (i.e., the last location in the browser's history object is overwritten by the new location). Default value is false.

Remarks

n/a

Dependencies

JSV_notInFrame, JSV_isWhitespace

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