Loads the Web page, passed with the URL, into the named frame, also passed with the URL.
JSV_loadInFrame([replace])
n/a
The JSV_loadInFrame
function uses the following arguments.
Argument | Description |
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. |
The JSV_loadInFrame
looks at the query string to find the values
associated with the attributes frameSetPage
.
The Web page associated with frameSetPage
is then loaded in the
named frame associated with frameName
.
The example may not work in some browsers when working offline.
JSV_getAttribute, JSV_isEmpty, JSV_loadFrame
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?frameSetPage=fm_loadInFrame.html&frameName=TopRight',
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
Updated: |
Copyright © 1999-2000 Roaring Fork Software. All rights reserved. |