top.setFrame("help.html","mainDisplay");
|
function setFrame(relativeURL,frameName) {
|
var actualURL = top.baseURL + relativeURL;
|
top.frames[frameName].location.href =
|
}
|
top refers to the top-level window in a frameset document. It has a property called frames, which is an array labeled by integers or by name as in <frame> name="frameName" </frame> tag
|
Setting a URL into the location.href property of a frame loads that page into the given frame
|
Use this.actualURL to distinguish local variable actualURL from a global variable of the same name
|
Put these functions in <head> </head> container to ensure they are loaded before anything else
|