Collapsible Menu with Memory | JavaScriptSource

Collapsible Menu with Memory

Sandeep Gangadharan Jul 14, 2008


This script creates a collapsible menu. Unlimited nested sub-links can also be added. The script uses a cookie to remember what portion of the menu the visitor has displayed so it will remain open when he returns to the page. The appearance of the menu can be changed to match any site.


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: collapsibleMenuMem.js


Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response