HELP! * GREY=local LOCAL HTML version of Foils prepared 15 January 1997

Foil 70 Another Important Way of setting a new document to be loaded

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * Important Information in IMAGE

localframe = displays[currentdisplay].pageframe; // List of labels of frames in frameset
if( (localframe != 'main') && (localframe != 'top') )
top.frames[localframe].location.href = pages[pageused].pageurl;
else top.location = pages[pageused].pageurl;
This code snippet shows an example where an array pages[pageused] (actually a structure with various information) stored in top hold URL's and we directly set location property of frame
location is object holding URL of page in object
location and location.href can be used interchangeably



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Feb 19 1997