1 |
top.setFrame("help.html","mainDisplay");
|
2 |
function setFrame(relativeURL,frameName) {
|
3 |
var actualURL = top.baseURL + relativeURL;
|
4 |
top.frames[frameName].location.href =
|
5 |
}
|
6 |
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
|
7 |
Setting a URL into the location.href property of a frame loads that page into the given frame
|
8 |
Use this.actualURL to distinguish local variable actualURL from a global variable of the same name
|
9 |
Put these functions in <head> </head> container to ensure they are loaded before anything else
|