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 |