|
January 13, 2002 Non-Persistent Related Menus Tips: January 2002
Yehuda Shiran, Ph.D.
|
|
One of the problems of related menus is that once you go off to another Web page and then come back, the menu selections are not persistent. Play around with these related menus: Write down the entries you see on both menus. Let's assume that the left and right menus are level2 and level23, respectively. Surf now to another Web site of your choice. Hit the browser's Back key. You will see that only the left menu persisted. The right menu's entry will be either level11, level12, or level13. The selected index of the shown option will match the selected index of the option before we left for another Web page. You should get level2 on the left menu, and level13 on the right menu. Tomorrow, we will show you how to overcome this problem using Cookies. Here is the HTML code:
Here is the JavaScript code:
People who read this tip also read these tips: Look for similar tips by subject: |