You can keep track of previously-visited menu items.
This feature is useful for a navigational menu. If your menu has Home, Products, and About Us items and the user clicks Home, the menu automatically highlights the Home menu item, letting users know they previously clicked there.
The first menu below
tracks previous menu locations in cookie path1, using the pathCookie option
does not open in the expanded state
The second menu
tracks previous menu locations in cookie path2, using the pathCookie option
opens expanded to View > Document Map, using the rememberPath:'expand' option
When the user clicks an item, the current menu location on the target page is highlighted. All links point to target.html.
When the user clicks a menu item, the previous menu location is visibly tracked.
To use the rememberPath option, the menu should exist on both the source and target pages, and both pages should be in the same domain.
This feature works for several menus on the same page.
All menus should be present on both source and target pages. The menu items must be initialized in the same order on all pages.