Top // components // tabWatcher.html
Basic bookmark and history datasources have been mastered.  As of 8/8/03, the history code is not fully in CVS, though bookmarks are.

The advanced datastructures at the window level are

var tabArray = new Array(); // Array of tab indexes
var windowHistory = new Array(); // ordered array of visit objects in order of pages visited
var urlIndex = new Object(); // url keyed associative array of page visits

var lastLoc; // URL last in focus
var lastTitle;

var curLoc; // URL in focus now
var curTitle; //
At the tab level, a separate collection of pointers to the windowHistory object are maintained.
curBrowser.tabIndex = new Array();
curBrowser.tabID = new Date().getTime();
tabArray[tabArray.length] = curBrowser.tabIndex;

Back operations are badly handled and should be observed with a history listener, see

Issues: