top.setframe("help.html","maindisplay");
|
function setframe(relativeurldesired,framelabel) {
-
var actualurl = top.baseurl + relativeurldesired;
-
top.frames[framelabel].location.href = this.actualurl;
|
}
|
top is a Netscape(Navigator) object with a property frames which is an array labelled by either integers or by value of name attribute in <frame> name="textofframelabel" </frame> tag
|
Setting a URL into location.href property of a frame loads that page into given frame.
|
top labels functions defined in page that defines frames
|
use this.actualurl to distinguish function's variable actualurl from a global variable of same name
|
Put these functions in <head> </head> section so as to ensure they are loaded before anything else
|